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

31 lines
672 B
Python

"""
Arguments:
MOTORS (list)
SENSORS (list)
RANGE_X (tuple (min, max))
RANGE_Y (tuple (min, max))
STEPS (tuple (x, y))
LATENCY (double)
RELATIVE (BOOLEAN)
ZIGZAG (BOOLEAN)
"""
#Debugging
if get_exec_pars().args is None:
MOTORS = [dummy_x, dummy_y]
SENSORS = [current]
RANGE_X = [0.0,2.0]
RANGE_Y = [0.0,1.0]
STEPS = [5, 10]
LATENCY = 0.1
RELATIVE = False
ZIGZAG = True
try:
ascan((MOTORS[0], MOTORS[1]), SENSORS, (RANGE_X[0], RANGE_Y[0]), (RANGE_X[1], RANGE_Y[1]), STEPS, LATENCY, RELATIVE, zigzag = ZIGZAG, \
before_read=before_readout, after_read = after_readout, compression = True)
finally:
after_scan()