Beispiel #1
0
 def __init__(self):
     ARMNode.__init__(self)
     AutoDiscoveredNode.__init__(self)
     self._lock = Lock()
     self.conversion_list = {}
     self._queue = Queue()
     self.debug = 0
     self.running = 0
     self._start_called = 0
     self.devices = ''
     self.device_addresses = []
     self._been_discovered = 0
Beispiel #2
0
 def __init__(self):
     ARMNode.__init__(self)
     AutoDiscoveredNode.__init__(self)
     self._lock = Lock()
     self.conversion_list = {}
     self._queue = Queue()
     self.debug = 0
     self.running = 0
     self._start_called = 0
     self.devices = ''
     self.device_addresses = []
     self._been_discovered = 0
Beispiel #3
0
 def __init__(self):
     ARMNode.__init__(self)
     self.r0 = 0
     self.r1 = 1  # high voltage mode for safety
     self.r2 = 0
     self.r3 = 0
     self.mode = 'volts'
     self._raw_value = 0
     self._volts = None
     self._ais = None
     self._data_type = float
     self._ttl = 0
     self._value = 0
Beispiel #4
0
 def __init__(self):
     ARMNode.__init__(self)
     self.r0 = 0
     self.r1 = 1 # high voltage mode for safety
     self.r2 = 0
     self.r3 = 0
     self.mode = 'volts'
     self._raw_value = 0
     self._volts = None
     self._ais = None
     self._data_type = float
     self._ttl = 0
     self._value = 0
Beispiel #5
0
 def configure(self, cd):
     ARMNode.configure(self, cd)
     if self.id < 1 or self.id > 3:
         self.id = None
         raise EInvalidValue('AO channel must be between 1 and 3.  %d is invalid' % self.id)
Beispiel #6
0
 def __init__(self):
     ARMNode.__init__(self)
     self.value = 0
Beispiel #7
0
 def configuration(self):
     self.devices, self.device_addresses = self.findall()
     self._been_discovered = 0
     config = ARMNode.configuration(self)
     get_attribute(self, 'devices', config)
     return config
Beispiel #8
0
 def configure(self, cd):
     ARMNode.configure(self, cd)
     if self.id < 1 or self.id > 3:
         self.id = None
         raise EInvalidValue(
             'AO channel must be between 1 and 3.  %d is invalid' % self.id)
Beispiel #9
0
 def configuration(self):
     config = ARMNode.configuration(self)
     #get_attribute(self, 'devices', config)
     return config
Beispiel #10
0
 def start(self):
     ARMNode.start(self)
     self.running = 1
     thread = Thread(name=self.name,target=self._scan_sensors,args=())
     thread.start()            
Beispiel #11
0
 def configuration(self):
     self.devices, self.device_addresses = self.findall()
     self._been_discovered = 0
     config = ARMNode.configuration(self)
     get_attribute(self, 'devices', config)
     return config
Beispiel #12
0
 def start(self):
     ARMNode.start(self)
     self.running = 0
Beispiel #13
0
 def configuration(self):
     config = ARMNode.configuration(self)
     #get_attribute(self, 'devices', config)
     return config
Beispiel #14
0
 def configure(self,config):
     ARMNode.configure(self,config)
Beispiel #15
0
 def configure(self, config):
     ARMNode.configure(self, config)
     set_attribute(self, 'mode', 'volts', config, str)
     set_attribute(self, 'ttl', 10.0, config, int)
Beispiel #16
0
 def configure(self, config):
     ARMNode.configure(self, config)
     set_attribute(self, 'mode', 'volts', config, str)
     set_attribute(self, 'ttl', 10.0, config, int)
Beispiel #17
0
 def configuration(self):
     cd = ARMNode.configuration(self)
     get_attribute(self, 'mode', cd, str)
     get_attribute(self, 'ttl', cd, str)
     return cd
Beispiel #18
0
 def configuration(self):
     cd = ARMNode.configuration(self)
     get_attribute(self, 'mode', cd, str)
     get_attribute(self, 'ttl', cd, str)
     return cd
Beispiel #19
0
 def configure(self, config):
     ARMNode.configure(self, config)
Beispiel #20
0
 def start(self):
     ARMNode.start(self)
     self.running = 1
     thread = Thread(name=self.name, target=self._scan_sensors, args=())
     thread.start()
Beispiel #21
0
 def start(self):
     ARMNode.start(self)
     self.running = 0
Beispiel #22
0
 def __init__(self):
     ARMNode.__init__(self)
     self.value = 0