diff --git a/script/ManipulatorScan.py b/script/ManipulatorScan.py index 16d7e46..6bc3cff 100755 --- a/script/ManipulatorScan.py +++ b/script/ManipulatorScan.py @@ -9,5 +9,14 @@ LATENCY (double) RELATIVE (BOOLEAN) """ -set_preference(Preference.PLOT_TYPES,{'integration':1}); -lscan(MOTOR, SENSORS, RANGE[0], RANGE[1], STEPS, LATENCY, RELATIVE, before_read=trig_scienta) \ No newline at end of file +if get_exec_pars().source == CommandSource.ui: + MOTOR = motor + SENSORS = (det.dataMatrix, scienta.spectrum, scienta.stats[0]) + RANGE = (-5.0, 5.0) + STEPS = 20 + LATENCY = 0.0 + RELATIVE = False + + +lscan(MOTOR, SENSORS, RANGE[0], RANGE[1], STEPS, LATENCY, RELATIVE, before_read=trig_scienta) +