Files
x03da/script/XAS.py
2018-08-28 16:08:30 +02:00

30 lines
673 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():
wait_beam()
time.sleep(10.)
#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()