voltsDirectory = r'C:\Users\QPL\Desktop\temp_measurements'

#######################
# instruments

#psuCtrl = mscan.Keithley2220(VISA_address=r'GPIB0::10::INSTR', channels=[1])


psuCtrl = mscan.Keithley2220_neg_pos(VISA_address=r'GPIB0::10::INSTR', ch_neg=1, ch_pos=2)
##psuCtrl = mscan.Keithley2220_negpos(VISA_address=r'GPIB0::10::INSTR', ch_neg=1, ch_pos=2)
psuCtrl.set_smooth_delay(0.5)

spectroCtrl = mdet.ActonNICtrl(sender_port="/Weetabix/port2/line0",
                               receiver_port="/Weetabix/port2/line4")
multimeterCtrl = mdet.MultimeterCtrl(VISA_address=r'GPIB0::13::INSTR')

d = datetime.datetime.now()
voltsFilePath = os.path.join(voltsDirectory, 'powerInVolts_{:%Y-%m-%d_%H-%M-%S}.txt'.format(d))

# Scanning program
volts_scan = mapper.XYScan(scanner_axes=[psuCtrl[0]], detectors=[multimeterCtrl])
#volts_scan = mapper.XYScan(scanner_axes=[psuCtrl[0]], detectors=[spectroCtrl])
volts_scan.set_range(xLims=xLims, xStep=xStep)
volts_scan.set_delays(between_points=delayBetweenPoints, between_rows=delayBetweenRows)
volts_scan.set_back_to_zero()

volts_scan.run_scan()

volts_scan.save_to_txt(voltsFilePath, array=volts_scan.counts)
예제 #2
0
#######################
#     Parameters      #

delayBetweenPoints = 1
delayBetweenRows = 1

xLims = (22, 32)  # (10, 100)
xStep = 1

yLims = (65, 75)  # (10, 140)
yStep = 1

voltsDirectory = r'C:\Users\QPL\Desktop\temporary_meas'

#######################
# instruments
GalvoCtrl = mscan.GalvoNI(chX= '/Dev1/ao0', chY= '/Dev1/ao1')


voltmeterCtrl = mdet.MultimeterCtrl(VISA_address=r'GPIB0::22::INSTR')

d = datetime.datetime.now()
voltsFilePath = os.path.join(voltsDirectory, 'powerInVolts_{:%Y-%m-%d_%H-%M-%S}.txt'.format(d))

# Scanning program
XYscan = mapper.XYScan(scanner_axes=GalvoCtrl, detectors=[voltmeterCtrl])
XYscan.set_range(xLims=xLims, xStep=xStep, yLims=yLims, yStep=yStep)
XYscan.set_delays(between_points=delayBetweenPoints, between_rows=delayBetweenRows)

XYscan.run_scan()