30 lines
691 B
Python
30 lines
691 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((ManipulatorPhi, ManipulatorTheta), SENSORS, (PHI_RANGE[0], THETA_RANGE[0]), (PHI_RANGE[1], THETA_RANGE[1]), STEPS, LATENCY, RELATIVE, zigzag = ZIGZAG, \
|
|
before_read=before_readout, after_read = after_readout, compression = True)
|
|
finally:
|
|
after_scan() |