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
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
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)
def __init__(self): ARMNode.__init__(self) self.value = 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
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)
def configuration(self): config = ARMNode.configuration(self) #get_attribute(self, 'devices', config) return config
def start(self): ARMNode.start(self) self.running = 1 thread = Thread(name=self.name,target=self._scan_sensors,args=()) thread.start()
def start(self): ARMNode.start(self) self.running = 0
def configure(self,config): ARMNode.configure(self,config)
def configure(self, config): ARMNode.configure(self, config) set_attribute(self, 'mode', 'volts', config, str) set_attribute(self, 'ttl', 10.0, config, int)
def configuration(self): cd = ARMNode.configuration(self) get_attribute(self, 'mode', cd, str) get_attribute(self, 'ttl', cd, str) return cd
def configure(self, config): ARMNode.configure(self, config)
def start(self): ARMNode.start(self) self.running = 1 thread = Thread(name=self.name, target=self._scan_sensors, args=()) thread.start()