Files
x03da/script/ExitSlitYScan.py
2017-01-26 12:14:42 +01:00

29 lines
659 B
Python

"""
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^8")
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)