def He3_instr(self): print "Initializing Instruments..." self.lockin1 = SRS830.SRS830("GPIB0::8") self.lockin2 = SRS830.SRS830("GPIB0::16") self.gate = DAC488.device("GPIB0::10") self.gate.set_range(1, 3) self.temp = LS340.device("GPIB0::12")
gateVoltage = 0.0 overwrite_previous = True sample = 'VA142-1' wire = 'ALL' notes = '.............' date = time.strftime('%d-%m-%y',time.localtime()) # Initialize the devices lockin1 = SRS830('GPIB0::8') lockin2 = SRS830('GPIB0::16') gate = DAC488.device('GPIB0::10') # gate = keithley.device('GPIB0::24') temp = LS340.device('GPIB0::12') def mkdir_p(path): try: os.makedirs(path) except OSError as exc: if exc.errno == errno.EEXIST: pass else: raise path = 'C:\\Users\\keyan\\Documents\\Data\\' + date + '\\' + sample +'\\' + wire + '\\' if os.path.isfile(path+'rampup.dat'): print 'Warning! File already exists' if overwrite_previous == False: path = path + 'I'