Files
x03da/script/XAS.py
2018-02-09 14:15:14 +01:00

30 lines
685 B
Python

"""
XAS scan
"""
POSITIONERS = (Eph)
SENSORS = (Keithley1, Keithley2, MachineCurrent)
#SENSORS = (SampleCurrent, RefCurrent, AuxCurrent, AuxVoltage, MachineCurrent)
#SENSORS = (SampleCurrent, RefCurrent, AuxCurrent, MachineCurrent, OpticsCameraCentroidX, OpticsCameraSigmaX)
STARTPOS = (800)
ENDPOS = (810)
#NUMPOINTS = 76
STEPSIZE = 0.1
LATENCY = 5.0
DWELL = 0.5
ENDSCAN = False # close shutter at end
def trig():
wait_beam()
#caput("X03DA-OP-10ADC:TRG.PROC", 1)
try:
prepare_keithleys(DWELL)
lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPSIZE, LATENCY, before_read=before_readout, after_read=after_readout)
finally:
if ENDSCAN:
after_scan()