Script execution

This commit is contained in:
x03daop
2016-05-20 15:16:02 +02:00
parent f36ce806e2
commit e9ed255755

22
script/ExitSlitYScan.py Normal file
View File

@@ -0,0 +1,22 @@
"""
exit slit calibration scan
"""
POSITIONERS = (ExitSlitY)
SENSORS = (SampleCurrent, RefCurrent, AuxCurrent, MachineCurrent)
STARTPOS = (-0.5)
ENDPOS = (2.0)
STEPS = 0.01
LATENCY = 0.1
DWELL = 1.0
value = DWELL * 10.0
SampleCurrentAveraging.write(value)
RefCurrentAveraging.write(value)
AuxCurrentAveraging.write(value)
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)