コード例 #1
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
     self.tg[idx] = func_generator
コード例 #2
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
     self.tg[idx] = func_generator
コード例 #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)
コード例 #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)