Script execution

This commit is contained in:
x03daop
2017-08-22 18:15:03 +02:00
parent 5f48327475
commit 91b396d996

View File

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