28 lines
582 B
Python
28 lines
582 B
Python
"""
|
|
XAS scan
|
|
"""
|
|
|
|
POSITIONERS = (Eph)
|
|
SENSORS = (SampleCurrent, RefCurrent, AuxCurrent, MachineCurrent)
|
|
STARTPOS = (700.0)
|
|
ENDPOS = (710.0)
|
|
NUMPOINTS = 11
|
|
LATENCY = 0.1
|
|
DWELL = 5.0
|
|
ENDSCAN = True # close shutter at end
|
|
|
|
value = DWELL * 10.0
|
|
SampleCurrentAveraging.write(value)
|
|
RefCurrentAveraging.write(value)
|
|
AuxCurrentAveraging.write(value)
|
|
|
|
def trig():
|
|
wait_beam()
|
|
caput("X03DA-OP-10ADC:TRG.PROC", 1)
|
|
|
|
try:
|
|
lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, NUMPOINTS, LATENCY, before_read=trig, after_read=after_readout)
|
|
finally:
|
|
if ENDSCAN:
|
|
after_scan()
|