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