Files
x03da/script/KeithleyVoltageScan.py
2023-07-10 21:51:06 +02:00

29 lines
743 B
Python

"""
Keithley voltage scan
"""
POSITIONERS = (Keithley1Voltage)
SENSORS = (Counts, SampleCurrent, RefCurrent, MachineCurrent, EnergyDistribution, AngleDistribution, Scienta.dataMatrix,ManipulatorTempA)
POSITIONS = (50,-50)
#STEPS = 10.0
STEPS = 1
LATENCY = 0
RELATIVE = False
adjust_sensors()
set_adc_averaging()
set_preference(Preference.PLOT_TYPES, {'Scienta spectrum':1})
set_exec_pars(compression=True)
i = 0
while i < 400:
i+=1
lscan(POSITIONERS,SENSORS,POSITIONS[0], POSITIONS[1], STEPS, LATENCY, RELATIVE, before_read = before_readout, after_read = after_readout)
# after_scan()
#lscan(POSITIONERS,SENSORS,POSITIONS[0], POSITIONS[1], STEPS, LATENCY, RELATIVE, before_read = before_readout, after_read = after_readout)