def AddDevice(self, axis):
     self._log.debug('AddDevice(%d): entering...' % axis)
     idx = axis - 1
     func_generator = FunctionGenerator()
     func_generator.initial_domain = SynchDomain.Time
     func_generator.active_domain = SynchDomain.Time
     self.tg[idx] = func_generator
 def AddDevice(self, axis):
     self._log.debug('AddDevice(%d): entering...' % axis)
     idx = axis - 1
     func_generator = FunctionGenerator()
     func_generator.initial_domain = SynchDomain.Time
     func_generator.active_domain = SynchDomain.Time
     self.tg[idx] = func_generator
Beispiel #3
0
 def AddDevice(self, axis):
     self._log.debug('AddDevice(%d): entering...' % axis)
     idx = axis - 1
     self.device.setoutput(axis, True)
     func_generator = FunctionGenerator()
     func_generator.initial_domain = SynchDomain.Time
     func_generator.active_domain = SynchDomain.Time
     cb = RasPiDOCallback(self.device, axis)
     func_generator.add_listener(cb)
     self.tg[idx] = func_generator
     self.cbs[idx] = cb
     self._log.debug('AddDevice(%d): leaving...' % axis)
Beispiel #4
0
 def AddDevice(self, axis):
     self._log.debug('AddDevice(%d): entering...' % axis)
     idx = axis - 1
     func_generator = FunctionGenerator()
     func_generator.initial_domain = SynchDomain.Time
     func_generator.active_domain = SynchDomain.Time
     cb = RasPiTangoDOCallback(self, axis)
     func_generator.add_listener(cb)
     self.tg[idx] = func_generator
     self.cbs[idx] = cb
     self.state[idx] = State.On
     self.status[idx] = "Stopped"
     self._log.debug("AddDevice(%d): leaving..." % axis)