Script execution
This commit is contained in:
1 parent
91b396d996
commit
8a1ef7fe96
1 file changed
+28
@@ -0,0 +1,28 @@
|
||||
"""
|
||||
exit slit test scan
|
||||
"""
|
||||
|
||||
POSITIONERS = (ExitSlit)
|
||||
SENSORS = (SampleCurrent, RefCurrent, AuxCurrent, MachineCurrent)
|
||||
STARTPOS = (-10.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 = (-10.0)
|
||||
STEPS = -10.0
|
||||
|
||||
lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, before_read=trig, after_read=after_readout)
|
||||
Reference in new issue
Block a user