Пример #1
0
 def __init__(self):
     InputDevice.__init__(self)
     self.config = ['signal', 'PHI', 'holdoff', 'amplification', 'inttime', 'mode', 'reftrigger', 'CH1_f', 'CH1_A', 'CH2_f', 'CH2_A', 'flock']
     self.signal = 0
     self.PHI = 0.0
     self.holdoff = 0.0
     self.amplification = 0
     self.inttime = 300.0
     self.mode = 0
     self.reftrigger = 2.0
     self.CH1_f = 10000.0
     self.CH1_A = 0.01
     self.CH2_f = 3000.0
     self.CH2_A = 4.0
     self.flock = 0
     self.units = ["V", "V", "V", "deg", "Hz"]
     self.qtynames = ["X","Y","R","Phi","f"]
     
     self.fdet = 0.0    # detected frequency in Hz
     self.phi = 0.0  # last detected phase in rad
     
     # config files and ADWin binaries
     self.LIA_EXT = "lock_in_ext.T91"
     self.LIA_INT = "lock_in_int.T92"    
     
     self.AD = adwin.adwin()
     self.booted = False
Пример #2
0
 def __init__(self):
     InputDevice.__init__(self)
     self.config = ['holdoff', 'refpos', 'records', 'trig_delay', 'trig_level', 'trig_slope', 'ch0_impedance', 'ch0_range', 'ch0_offset', 'ch1_impedance', 'ch1_range', 'ch1_offset', 'intmode', 'inttime', 'refmode', 'CH1mode', 'modlevel', 'gatewidth']
     self.holdoff = 0.0
     self.refpos = 0
     self.records = 1
     self.trig_delay = 0.0
     self.trig_level = 0.0
     self.trig_slope = -1
     self.ch0_impedance = 1000000
     self.ch0_range = 20.0
     self.ch0_offset = 0.0
     self.ch1_impedance = 1000000
     self.ch1_range = 20.0
     self.ch1_offset = 0.0
     self.intmode = 0
     self.inttime = 30.0
     self.refmode = 3
     self.CH1mode = 0
     self.modlevel = 0.0
     self.gatewidth = 1.0
     # device handle
     self.pxi = pyPXI5122()
     self.units = ["V"]
     self.qtynames = [""]
Пример #3
0
 def __init__(self):
     InputDevice.__init__(self)
     self.timeout = 2
     self.instr = None        
     self.units = ["V"]
     self.qtynames = [""]
     self.holdoff = 0.0
     self.config = ['holdoff']
Пример #4
0
 def __init__(self):
     InputDevice.__init__(self)
     self.timeout = 2
     self.units = ["V", "V", "V", "deg"]
     self.qtynames = ["X", "Y", "R", "phi"]
     self.instr = None
     self.holdoff = 0.0
     self.channel = 0
     self.automatic = False
     self.config = ["holdoff", "channel", "automatic"]
Пример #5
0
 def __init__(self):
     InputDevice.__init__(self)
     # signal = 0:X, 1:Y, 2:R, 3:PHI
     # PHI is phase for lock-in detection in rad
     self.config = {'signal':0, 'PHI':0.0, 'holdoff':0.0, 'ch0_impedance':1000000, 'ch0_filter':-1, 'ch0_range':20.0, 'ch0_offset':0.0, 'ch1_impedance':1000000, 'ch1_filter':-1, 'ch1_range':20.0, 'ch1_offset':0.0, 'inttime':300.0}
     self.fdet = 0.0    # detected frequency in Hz
     self.phi = 0.0  # last detected phase in rad
     self.units = ["V", "V", "V", "deg", "Hz"]
     self.qtynames = ["X","Y","R","Phi","f"]
     
     # device handle
     self.pxi = pyPXI5122()
Пример #6
0
 def __init__(self):
     """
         Initialization.
     """
     InputDevice.__init__(self)
     # Insert here what the driver should do when loaded
     # (e.g. check that the right modules/interface cards/... are present).
     # DON'T initialize the device here (see initialize() function for that).
     
     # variables stated in self.config will be loaded/saved
     # from/to the configuration file (devices.ini)
     self.config = ["variable1", "variable2"]
     self.variable1 = 0.0
     self.variable2 = "blah"
Пример #7
0
 def __init__(self):
     InputDevice.__init__(self)
     self.config = ['holdoff', 'mode', 'pulselength', 'wavelength', 'range', 'MM_mode', 'MM_samples', 'frequency']
     self.holdoff = 0.0
     self.mode = 0
     self.pulselength = 0
     self.wavelength = 0
     self.range = 0
     self.MM_mode = 0
     self.MM_samples = 1
     self.frequency = 1000
     self.units = ["V"]
     self.qtynames = [""]
     try:
         from ophir import OphirUSBI
         self.device = OphirUSBI()
         self.connected = False
     except:
         self.device = None
         self.connected = False