Blame view

instruments/abstract_instrument.py 915 Bytes
91efd0ebc   mer0m   Add files via upload
1
2
3
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
40
41
42
43
44
  import abc
  
  class abstract_instrument(object):
      __metaclass__ = abc.ABCMeta
  
      @abc.abstractmethod
      def __init__(self, adress, vtype, channel):
          """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