Script execution

This commit is contained in:
gac-x10da
2019-03-19 18:06:38 +01:00
parent b1c068a8c2
commit 776dfa8e1e

View File

@@ -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()