示例#1
0
 def __init__(self, resource, *args, **kwargs):
     self.instrument = __visa_rm__.open_resource(resource, *args, **kwargs)
     self.write('OUTX 1') # Set the device responce port to GPIB
     self.__class__.__call__ = self.__class__.outp
示例#2
0
 def __init__(self, resource, *args, **kwargs):
     self.instrument = __visa_rm__.open_resource(resource, *args, **kwargs)
     self.__class__.__call__ = self.__class__.fetch
     self.instrument.write('FORMAT REAL,32')
示例#3
0
 def __init__(self, resource, *args, **kwargs):
     self.instrument = __visa_rm__.open_resource(resource, *args, **kwargs)
     self.__class__.__call__ = self.__class__.setamplitude
     self.close = self.instrument.close
示例#4
0
 def __init__(self, resource, *args, **kwargs):
     self.instrument = __visa_rm__.open_resource(resource, *args, **kwargs)
示例#5
0
 def __init__(self, resource, *args, **kwargs):
     self.instrument = __visa_rm__.open_resource(resource, *args, **kwargs)
     self.lastvar = None
     self.__class__.__call__ = self.__class__.fetch
示例#6
0
 def __init__(self, resource, *args, **kwargs):
     self.instrument = __visa_rm__.open_resource(resource, *args, **kwargs)
     self.value = 0
     self.points_per_second = 20
     self.__class__.__call__ = self.__class__.ramp