Script execution

This commit is contained in:
x03daop
2017-11-04 00:31:59 +01:00
parent a6ce8e87e8
commit 25f8045017

View File

@@ -0,0 +1,27 @@
"""
XAS scan
"""
POSITIONERS = (Eph)
SENSORS = (SampleCurrent, RefCurrent, AuxCurrent, AuxVoltage, MachineCurrent)
#SENSORS = (SampleCurrent, RefCurrent, AuxCurrent, MachineCurrent, OpticsCameraCentroidX, OpticsCameraSigmaX)
STARTPOS = (98)
ENDPOS = (106)
#NUMPOINTS = 76
STEPSIZE = 0.05
LATENCY = 0.0
DWELL = 1.0
ENDSCAN = True # close shutter at end
value = DWELL * 10.0
SampleCurrentAveraging.write(value)
RefCurrentAveraging.write(value)
AuxCurrentAveraging.write(value)
AuxVoltageAveraging.write(value)
def trig():
wait_beam()
caput("X03DA-OP-10ADC:TRG.PROC", 1)
lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPSIZE, LATENCY, before_read=trig, after_read=after_readout)