def get_status(self): self.pad = None self.sad = None self.tmo = None if self._own: self.pad = gpib.ask(self.id, gpib.IbaPAD) self.sad = gpib.ask(self.id, gpib.IbaSAD) self.tmo = gpib.ask(self.id, gpib.IbaTMO)
def _find_listeners(): """Find GPIB listeners. """ for i in range(31): try: if gpib.listener(BOARD, i) and gpib.ask(BOARD, 1) != i: yield i except gpib.GpibError as e: logger.debug("GPIB error in _find_listeners(): %s", repr(e))
def _find_listeners(): """Find GPIB listeners. """ for i in range(31): if gpib.listener(BOARD, i) and gpib.ask(BOARD, 1) != i: yield i
def ask(self, option): self.res = gpib.ask(self.id, option) return self.res
def ask(self,option): self.res = gpib.ask(self.id, option) return self.res