def _write(self,command,useSRQ=False,timeout=3000): if type(self._deviceHandle).__name__ == 'GpibInstrument': if useSRQ: ScpiDevice._write(self,command + '; RQ') self._deviceHandle.wait_for_srq(timeout) else: ScpiDevice._write(self,command) elif type(self._deviceHandle).__name__ == 'SerialInstrument': ScpiDevice._write(self,command) else: raise ValueError('Device handle of type ' + type(self._deviceHandle).__name__ + ' not supported')