Esempio n. 1
0
    def __init(self,data_q):
        threading.Thread.__init__(self)
        self.data_q = data_q
        
        # What does this do?
        self.alive = threading.Event()
        self.alive.set()
        
        self.stepTime = 0.3
        self.max_gate = -2.2
        self.stepsize = 0.001
        self.windowlower = -1.5
        self.windowupper = -2.0
        self.windowstep = 0.0001
        self.gateVoltage = 0.0
        
        # Initialize the devices

        self.lockin1 = SRS830.device('GPIB0::8')
        self.lockin2 = SRS830.device('GPIB0::16')
        #gate = DAC488.device('GPIB::10')
        self.gate = keithley.device('GPIB0::24')
        self.temp = lakeshore332.device('GPIB0::12')
        
        self.gate.reset()
        self.gate.configure_output('VOLT',gateVoltage,0.00005)
        self.gate.enable_output()

        t_start = time.time()


        self.setupfile("VA150ALD2","III")
Esempio n. 2
0
windowupper = -2.0
windowstep = 0.0001
gateVoltage = 0.0


sample = 'VA150ALD2'
wire = 'III'
notes = '.............'
date = time.strftime('%d-%m-%y',time.localtime())

# Initialize the devices

lockin1 = SRS830.device('GPIB0::8')
lockin2 = SRS830.device('GPIB0::16')
#gate = DAC488.device('GPIB::10')
gate = keithley.device('GPIB0::24')
temp = lakeshore332.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\\bram\\Documents\\Data\\' + date + '\\' + sample +'\\' + wire + '\\'

if os.path.isfile(path+'rampup.dat'):
    print 'Warning! File already exists'
    path = path + 'I'