Beispiel #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")
Beispiel #2
0
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 16 16:17:59 2012
Program for Binxin
@author: Bram!
"""

import SRS830
import lakeshore332
import time

t_start = time.time()
points = 1000000
timestep = 1 #(s)
step = 0
lockin = SRS830.device('GPIB1::8')
#lockin2 = SRS830.device('GPIB::17')
temp = lakeshore332.device('GPIB1::12')
#Write the filename here
filename = 'D:\\MANIP\\DATA\\Binxin\\RT_VTI.dat'

out_file = open (filename, 'w')
out_file.write('X-Value\t Y-Value\t Temperature\t Time \n') 
print 'X-Value\t Y-Value\t Temperature\t Time'

def read():
    t = time.time() - t_start
    t = float(t)
    x_value = lockin.read_input(1)
    x = float(x_value)
    y_value = lockin.read_input(2)
Beispiel #3
0
biasSet = 5.0
biasVoltage = 0.0 
biasStep = 0.1
stepTime = 1
stepVoltage = 0.1 # 1mV steps

#Sample Info

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

# Initialize the devices

lockin1 = SRS830.device('GPIB::8')
lockin2 = SRS830.device('GPIB::16')
gate = DAC488.device('GPIB::10')
temp = lakeshore332.device('GPIB1::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 + '\\'

# Make the sample directory
Beispiel #4
0
import matplotlib
from pylab import *

using_magnet = True
COIL_VOLTAGE = 1.4
NUM_SAMPLES = 5
NUM_POINTS = 10
MEAS_TIME = 10
REST_TIME = 30
OFFSETS = [-2, 2]
PHASES = [0, 180]
FIELD_SET = arange(0.5, 0.52, 0.002)

# instrumentation setup
lockins = [SRS830.device("dev9"), SRS830.device("dev8"), SRS830.device("dev2")]

# tuple: lockin #, channel, subplot for display
data_channels = (
    [0, 1, 1, array([])],
    [0, 2, 2, array([])],
    [1, 1, 3, array([])],
    [1, 2, 4, array([])],
    [2, 1, 5, array([])],
    [2, 2, 6, array([])],
)

# lakeshore = LS370.LS370('dev12')
f_src = T344.T344("COM1")

if using_magnet == True:
Beispiel #5
0
Quick Filter Test 
@author: bram
"""

import SRS830
import time
import numpy
import matplotlib
from pylab import *


stepTime = 5
stepsize = 0.001
freq = numpy.logspace(0,5,100)
n = len(freq)
lockin = SRS830.device('GPIB1::14')
lockin.set_freq(freq[0])

# Plotter
#ion()
#fig = figure()
#fig.canvas.set_window_title("Frequency Sweep")
#ax = fig.add_subplot (111)

dat_file = open ("C:\\Users\\keyan\\Documents\\Data\\Filter\\nitrogen.dat", 'w')
dat_file.write("Frequency(hz) \t X(V) \t Y(V) \n")
print("Frequency(hz) \t X(V) \t Y(V) \n")

x = []
y = []