def init_device(self): PoolExpChannelDevice.init_device(self) zerod = self.zerod if zerod is None: full_name = self.get_full_name() name = self.alias or full_name self.zerod = zerod = \ self.pool.create_element(type="ZeroDExpChannel", name=name, full_name=full_name, id=self.Id, axis=self.Axis, ctrl_id=self.Ctrl_id) zerod.add_listener(self.on_zerod_changed) # force a state read to initialize the state attribute #state = zerod.state self.set_state(DevState.ON)
def init_device(self): PoolExpChannelDevice.init_device(self) zerod = self.zerod if zerod is None: full_name = self.get_full_name() name = self.alias or full_name self.zerod = zerod = \ self.pool.create_element(type="ZeroDExpChannel", name=name, full_name=full_name, id=self.Id, axis=self.Axis, ctrl_id=self.Ctrl_id) zerod.add_listener(self.on_zerod_changed) # force a state read to initialize the state attribute #state = zerod.state self.set_state(DevState.ON)
def init_device(self): PoolExpChannelDevice.init_device(self) oned = self.oned if oned is None: full_name = self.get_full_name() name = self.alias or full_name self.oned = oned = \ self.pool.create_element(type="OneDExpChannel", name=name, full_name=full_name, id=self.Id, axis=self.Axis, ctrl_id=self.Ctrl_id) if self.instrument is not None: oned.set_instrument(self.instrument) oned.add_listener(self.on_oned_changed) # force a state read to initialize the state attribute #state = ct.state self.set_state(DevState.ON)
def init_device(self): PoolExpChannelDevice.init_device(self) self.Elements = map(int, self.Elements) pseudo_counter = self.pseudo_counter if pseudo_counter is None: full_name = self.get_full_name() name = self.alias or full_name self.pseudo_counter = pseudo_counter = \ self.pool.create_element(type="PseudoCounter", name=name, full_name=full_name, id=self.Id, axis=self.Axis, ctrl_id=self.Ctrl_id, user_elements=self.Elements) if self.instrument is not None: pseudo_counter.set_instrument(self.instrument) pseudo_counter.add_listener(self.on_pseudo_counter_changed) self.set_state(DevState.ON)
def init_device(self): PoolExpChannelDevice.init_device(self) self.Elements = map(int, self.Elements) pseudo_counter = self.pseudo_counter if pseudo_counter is None: full_name = self.get_full_name() name = self.alias or full_name self.pseudo_counter = pseudo_counter = \ self.pool.create_element(type="PseudoCounter", name=name, full_name=full_name, id=self.Id, axis=self.Axis, ctrl_id=self.Ctrl_id, user_elements=self.Elements) if self.instrument is not None: pseudo_counter.set_instrument(self.instrument) pseudo_counter.add_listener(self.on_pseudo_counter_changed) self.set_state(DevState.ON)