Files
x03da/script/test/ManipulatorScanKei.py
gac-x03da ce46a878ad Closedown
2018-02-08 17:39:25 +01:00

30 lines
572 B
Python

"""
Arguments:
MOTOR (device)
SENSORS (list)
RANGE (tuple (min, max))
STEPS (int or tuple)
LATENCY (double)
RELATIVE (BOOLEAN)
"""
MOTOR = (ManipulatorY)
SENSORS = (SampleCurrent, RefCurrent)
RANGE = (-0.5, 0.5)
STEPS = 10
LATENCY = 0.5
RELATIVE = True
ENDSCAN = True
adjust_sensors()
set_adc_averaging()
before_scan()
set_preference(Preference.PLOT_TYPES, {'Scienta spectrum':1})
try:
lscan(MOTOR, SENSORS, RANGE[0], RANGE[1], STEPS, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout)
finally:
if ENDSCAN:
after_scan()