Beispiel #1
0
TaskHandle = ctypes.c_uint32
do_task = TaskHandle(1)
nidaq.DAQmxCreateTask("", ctypes.byref(do_task))
nidaq.DAQmxCreateDOChan(do_task, do_chan, "output", DAQmx_Val_ChanPerLine)


def pulse(length=0.5):
    return nidaq.DAQmxWriteDigitalLines(do_task, 2, 1, -1,
                                        DAQmx_Val_GroupByChannel, do_data,
                                        None, None)


########################################################################
#CONNECT to hameg and tektronix
hameg = ha.HMP2030(device="hameg01", voltage_max=20., current_max=0.07)
tektronix = tek.AFG3252("TCPIP0::129.69.46.235::inst0::INSTR")

##########################################################################
#INITIALIZE measurement parameters

cell = '4'
measno = '47'
measurement = 'b1sweep_rb85_50degC_less_than_12uW_40dB_R0asB0_R1asB1_withHighPass_SR83010ms5mV24dB'

#initialize b1 frequency
fcenter = 5E3  #start frequency b1
fspan = 5E3  #frequency step b1
b1sweepFreq = 2

#initialize b1 amplitude
Beispiel #2
0
import hardware.hameg as ha
import numpy as np
import time
import pyvisa
import matplotlib.pyplot as plt
import os
import matplotlib.colors as cl

########################################################################
#CONNECT to hameg and tektronix

rm = pyvisa.ResourceManager()
lockin = rm.open_resource("GPIB0::10::INSTR")

tektronix = tek.AFG3252("TCPIP0::129.69.46.235::inst0::INSTR")
hameg = ha.HMP2030(device="hameg01", channel=1, voltage_max=20., current_max=1)

##########################################################################
#INITIALIZE measurement parameters

cell = '4'
measno = '156'
measurement = '{0:s}_rb87_last trans_3_shields_isweep'.format(measno)
#number and special features of the measurement

fstart = 24.6E3  #start frequency
fstep = 0.2E3  #frequency step
fstop = 25.6E3  #stop frequency
steps = int((fstop - fstart) / fstep + 1)  #frequency steps
print 'frequency steps:{0:d}'.format(steps)