31 lines
685 B
Python
31 lines
685 B
Python
"""
|
|
XAS scan
|
|
"""
|
|
|
|
POSITIONERS = (Eph)
|
|
# SENSORS = (Keithley1, Keithley2, MachineCurrent)
|
|
|
|
SENSORS = (SampleCurrent, RefCurrent, MachineCurrent)
|
|
#SENSORS = (SampleCurrent, RefCurrent, AuxCurrent, MachineCurrent, OpticsCameraCentroidX, OpticsCameraSigmaX)
|
|
STARTPOS = (440.)
|
|
ENDPOS = (450.)
|
|
#NUMPOINTS = 76
|
|
STEPSIZE = 2.5
|
|
LATENCY = 0.0
|
|
|
|
ENDSCAN = False # close shutter at end
|
|
|
|
|
|
def trig():
|
|
time.sleep(10.)
|
|
before_readout()
|
|
#wait_beam()
|
|
#caput("X03DA-OP-10ADC:TRG.PROC", 1)
|
|
|
|
try:
|
|
#prepare_keithleys(DWELL)
|
|
lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPSIZE, LATENCY, before_read=trig, after_read=after_readout)
|
|
finally:
|
|
if ENDSCAN:
|
|
after_scan()
|