Script execution
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user