Files
x03da/script/XAS.py
2018-05-19 10:50:02 +02:00

31 lines
683 B
Python

"""
XAS scan
"""
POSITIONERS = (Eph)
# SENSORS = (Keithley1, Keithley2, MachineCurrent)
SENSORS = (SampleCurrent, RefCurrent, MachineCurrent)
#SENSORS = (SampleCurrent, RefCurrent, AuxCurrent, MachineCurrent, OpticsCameraCentroidX, OpticsCameraSigmaX)
STARTPOS = (155.)
ENDPOS = (175.)
#NUMPOINTS = 76
STEPSIZE = 0.1
LATENCY = 1.0
DWELL = 1.
ENDSCAN = False # close shutter at end
def trig():
wait_beam()
time.sleep(1.)
#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()