예제 #1
0
파일: voltsource.py 프로젝트: ziqianli/slab
 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)
예제 #2
0
 def write(self, s):
     if self.protocol == 'serial':
         SerialInstrument.write(self, s)
     if self.protocol == 'VISA':
         VisaInstrument.write(self, s)
예제 #3
0
 def write(self, s):
     if self.protocol == 'serial':
         SerialInstrument.write(self, s)
     if self.protocol == 'socket':
         SocketInstrument.write(self, s)
예제 #4
0
 def write(self, s):
     if self.protocol == 'serial':
         SerialInstrument.write(self, s)
     if self.protocol == 'socket':
         SocketInstrument.write(self, s)