Blame view
instruments/abstract_instrument.py
673 Bytes
6cdd466f1 Add files via upload |
1 2 3 |
import abc class abstract_instrument(object): |
10016888c replace 4 spaces ... |
4 5 6 7 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 |
__metaclass__ = abc.ABCMeta @abc.abstractmethod def __init__(self, adress, vtype): """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 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 |