def write(self, s, port=None): if port is not None: self.write("SNDT %x,#3%03d%s\n" % (port, len(s), s)) if self.protocol == 'serial': SerialInstrument.write(self, s) if self.protocol == 'socket': VisaInstrument.write(self, s)
def write(self, s): if self.protocol == 'serial': SerialInstrument.write(self, s) if self.protocol == 'VISA': VisaInstrument.write(self, s)
def write(self, s): if self.protocol == 'serial': SerialInstrument.write(self, s) if self.protocol == 'socket': SocketInstrument.write(self, s)