def read(self, port=None): if port is not None: self.write("CONN %x,'%s'\n" % (port, self.escapekey)) self.read() self.write(self.escapekey) if self.protocol == 'serial': return SerialInstrument.read(self) if self.protocol == 'GPIB': return VisaInstrument.read(self)
def read(self): if self.protocol == 'serial': return SerialInstrument.read(self) if self.protocol == 'VISA': return VisaInstrument.read(self)
def read(self): if self.protocol == 'serial': return SerialInstrument.read(self) if self.protocol == 'socket': return SocketInstrument.read(self)