Files
x09lb/script/templates/Scan1D.py
gac-x09lb e852f3d403 Closedown
2022-10-03 10:56:27 +02:00

24 lines
498 B
Python

"""
Arguments:
MOTOR (device)
SENSORS (list)
RANGE (tuple (min, max))
STEPS (int or tuple)
LATENCY (double)
RELATIVE (BOOLEAN)
"""
#Debugging
if get_exec_pars().args is None:
MOTOR = dummy_x
SENSORS = [current, ccd.dataMatrix]
RANGE = [0.0,1.0]
STEPS = 5
LATENCY = 0.1
RELATIVE = False
try:
r = lscan(MOTOR, SENSORS, RANGE[0], RANGE[1], STEPS, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout, compression=True)
finally:
after_scan()