From 776dfa8e1e09ce2c19f062a443a0e7ab9c3acf40 Mon Sep 17 00:00:00 2001 From: gac-x10da Date: Tue, 19 Mar 2019 18:06:38 +0100 Subject: [PATCH] Script execution --- script/daq/PumpProbeXES_DelayScan.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script/daq/PumpProbeXES_DelayScan.py b/script/daq/PumpProbeXES_DelayScan.py index b9f950f..d86b924 100644 --- a/script/daq/PumpProbeXES_DelayScan.py +++ b/script/daq/PumpProbeXES_DelayScan.py @@ -102,12 +102,16 @@ def run_aquisition(): def before_sample(): DELAY.write(DelayOn) run_aquisition() + +class PseudoPositioner(Writable): + def write(self,pos): + DelayOn=pos try: # tscan(detectors + [ROI1_Off, ROI2_Off, ROI1_Diff, ROI2_Diff], 30, 0, before_read = before_sample, \ # line_plots = [ROI1_Diff, ROI2_Diff]) - lscan(DelayOn, detectors + [ROI1_Off, ROI2_Off, ROI1_Diff, ROI2_Diff], 0, 200,20, before_read = before_sample, line_plots = [ROI1_Diff, ROI2_Diff,SAI02], enabled_plots = [ROI1_Diff, ROI2_Diff,SAI02]) + lscan(PseudoPositioner, detectors + [ROI1_Off, ROI2_Off, ROI1_Diff, ROI2_Diff], 0, 200,20, before_read = before_sample, line_plots = [ROI1_Diff, ROI2_Diff,SAI02], enabled_plots = [ROI1_Diff, ROI2_Diff,SAI02]) finally: for det in detectors: det.close()