diff --git a/script/optics/ExitSlitYScanKei.py b/script/optics/ExitSlitYScanKei.py new file mode 100644 index 00000000..ad43b334 --- /dev/null +++ b/script/optics/ExitSlitYScanKei.py @@ -0,0 +1,43 @@ +""" +exit slit calibration scan + +manual settings: photon energy 800 eV (G1200), FE = 1 x 1 + +keithley 1: diode +keithley 2: RMU +""" + +POSITIONERS = (ExitSlitY) +SENSORS = (Keithley1, Keithley2, MachineCurrent) +STARTPOS = (-0.5) +ENDPOS = (1.0) +STEPS = 0.01 +LATENCY = 0.1 +DWELL = 1.0 + +KEI_DIODE = "X03DA-KEITHLEY-1:" +KEI_RMU = "X03DA-KEITHLEY-2:" + +caput(KEI_DIODE + "READSCAN.SCAN", "Passive") +caput(KEI_DIODE + "NPLC", 1) +caput(KEI_DIODE + "NAVG", DWELL / 0.02) +caput(KEI_DIODE + "TCOUNT", 1) +caput(KEI_DIODE + "RANGE", "200 nA") + +caput(KEI_RMU + "READSCAN.SCAN", "Passive") +caput(KEI_RMU + "NPLC", 1) +caput(KEI_RMU + "NAVG", DWELL / 0.02) +caput(KEI_RMU + "TCOUNT", 1) +caput(KEI_RMU + "RANGE", "2 nA") + +def trig(): + wait_beam() + caput(KEI_DIODE + "DOINIT", 1) + caput(KEI_RMU + "DOINIT", 1) + caput(KEI_DIODE + "DOTRIGGER", 1) + caput(KEI_RMU + "DOTRIGGER", 1) + caput(KEI_DIODE + "DOFETCH", 1) + caput(KEI_RMU + "DOFETCH", 1) + +lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, before_read=trig, after_read=after_readout) +