From 91b396d996f2efa5df06d39d8b244ab6e00a12ff Mon Sep 17 00:00:00 2001 From: x03daop Date: Tue, 22 Aug 2017 18:15:03 +0200 Subject: [PATCH] Script execution --- script/optics/ExitSlitYScan.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 script/optics/ExitSlitYScan.py diff --git a/script/optics/ExitSlitYScan.py b/script/optics/ExitSlitYScan.py new file mode 100644 index 00000000..f9aac00a --- /dev/null +++ b/script/optics/ExitSlitYScan.py @@ -0,0 +1,28 @@ +""" +exit slit calibration scan + +manual settings: photon energy 800 eV (G1200), FE = 1 x 1 +""" + +POSITIONERS = (ExitSlitY) +SENSORS = (SampleCurrent, RefCurrent, AuxCurrent, MachineCurrent) +STARTPOS = (-0.5) +ENDPOS = (1.5) +STEPS = 0.01 +LATENCY = 0.1 +DWELL = 1.0 + +value = DWELL * 10.0 +SampleCurrentAveraging.write(value) +RefCurrentAveraging.write(value) +AuxCurrentAveraging.write(value) + +SampleCurrentGain.write("L, 10^7") +RefCurrentGain.write("L, 10^9") +AuxCurrentGain.write("L, 10^8") + +def trig(): + wait_beam() + caput("X03DA-OP-10ADC:TRG.PROC", 1) + +lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, before_read=trig, after_read=after_readout)