Files
x03da/script/ManipulatorScan.py
2015-11-02 15:11:33 +01:00

18 lines
457 B
Python

"""
Arguments:
MOTOR (device)
SENSORS (list)
RANGE (tuple (min, max))
STEPS (int or tuple)
LATENCY (double)
RELATIVE (BOOLEAN)
"""
def AfterReadout(rec):
if rec.index == 0:
create_diag_datasets()
append_diag_datasets()
set_preference(Preference.PLOT_TYPES,{'ImageIntegrator':1})
lscan(MOTOR, SENSORS, RANGE[0], RANGE[1], STEPS, LATENCY, RELATIVE, before_read=trig_scienta, after_read = AfterReadout)