Exemple #1
0
 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)
Exemple #2
0
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))
Exemple #3
0
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))
Exemple #4
0
def _find_listeners():
    """Find GPIB listeners.
    """
    for i in range(31):
        if gpib.listener(BOARD, i) and gpib.ask(BOARD, 1) != i:
            yield i
Exemple #5
0
 def ask(self, option):
     self.res = gpib.ask(self.id, option)
     return self.res
Exemple #6
0
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