Blame view
instruments/abstract_instrument.py
916 Bytes
91efd0ebc Add files via upload |
1 2 3 4 5 6 |
import abc class abstract_instrument(object): __metaclass__ = abc.ABCMeta @abc.abstractmethod |
9058343c5 some minor fixes |
7 |
def __init__(self, address, vtype, channel): |
91efd0ebc Add files via upload |
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
"""Build the class""" return @abc.abstractmethod def model(self): """return the instrument model""" return @abc.abstractmethod def connect(self): """Create a connection with the instrument""" return @abc.abstractmethod def disconnect(self): """Disconnect the instrument""" return @abc.abstractmethod def configure(self): """Configure the instrument""" return @abc.abstractmethod def read(self): """read the buffer""" return @abc.abstractmethod def send(self): """send a command""" return @abc.abstractmethod def getValue(self): """return the value of measurment""" return |