29 lines
649 B
Python
29 lines
649 B
Python
"""
|
|
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)
|
|
|
|
STARTPOS = (200.0)
|
|
ENDPOS = (0.0)
|
|
STEPS = -10.0
|
|
|
|
lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, before_read=trig, after_read=after_readout)
|