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")
""" Created on Thu Jun 07 12:11:52 2012 @author: BRAM """ import SRS830 import DAC488 import lakeshore332 import time t_start = time.time() frequency = 108.25 # hz amplitude = 5.0 # V time_constant = 100.0 #ms lockin = SRS830.device('GPIB1::8') gate = DAC488.device('GPIB1::10') temp = lakeshore332.device('GPIB1::12') gate.set_range(1,3) def read(gateVoltage): t = time.time() - t_start t = float(t) x_value = lockin.read_input(1) x = float(x_value) # gate = gate temperature = float(temp.read('b')) conductance = calc_conduct(x) return [gateVoltage, conductance, x, temperature, t] def calc_conduct(voltage):
# Program Parameters rampTime = 10.0 # (minutes) maxBias = -2.5 steps = int(rampTime*60) biasVoltage = -0.0 stepTime = float(rampTime*60/steps) stepVoltage = float(maxBias/steps) timeout = 120.0 #(minutes) timeout #(seconds) # Initialize the devices lockin = SRS830.device('GPIB1::8') bias = DAC488.device('GPIB1::10') temp = lakeshore332.device('GPIB1::12') bias.set_range(1,3) t_start = time.time() out_file = open ('test.dat', 'w') # First we need to slowly rampt to our bias voltage print "Ramping up the Bias Voltage" out_file.write("Sample: VA150InSn2\n Measuring with 0.05V/500k (100nA)\n") out_file.write("Ramping up the Bias Voltage\n") print("...") print("...")