Script execution

This commit is contained in:
x03daop
2016-05-20 15:42:15 +02:00
parent ed8acaffa8
commit a70c460c6e

22
script/ExitSlitScan.py Normal file
View File

@@ -0,0 +1,22 @@
"""
exit slit test scan
"""
POSITIONERS = (ExitSlit)
SENSORS = (SampleCurrent, RefCurrent, AuxCurrent, MachineCurrent)
STARTPOS = (0.0)
ENDPOS = (200.0)
STEPS = 10.0
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)