コード例 #1
0
ファイル: livecondata.py プロジェクト: bramathon/brampy
    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")
コード例 #2
0
ファイル: Temperature Sweep.py プロジェクト: Keyanb/g2python
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)
    y = float(y_value)
    # gate = gate