示例#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 detect(self):
     retval = []
     if _support_ADWIN == True:
         try:
             AD = adwin.adwin()
             if AD.boot(input.ADDev, input.ADBoot) == 1:
                 retval.append(["ADWinLockIn", "ADWinLockIn", "1.0"])
         except:
             pass
     return retval