Script execution
This commit is contained in:
28
script/XASAziScan.py
Normal file
28
script/XASAziScan.py
Normal file
@@ -0,0 +1,28 @@
|
||||
"""
|
||||
XAS scan
|
||||
"""
|
||||
|
||||
POSITIONERS = (ManipulatorPhi)
|
||||
SENSORS = (Keithley1, Keithley2, MachineCurrent)
|
||||
|
||||
#SENSORS = (SampleCurrent, RefCurrent, AuxCurrent, AuxVoltage, MachineCurrent)
|
||||
#SENSORS = (SampleCurrent, RefCurrent, AuxCurrent, MachineCurrent, OpticsCameraCentroidX, OpticsCameraSigmaX)
|
||||
STARTPOS = (-179.0)
|
||||
ENDPOS = (180.0)
|
||||
#NUMPOINTS = 76
|
||||
STEPSIZE = 5.0
|
||||
LATENCY = 0.1
|
||||
DWELL = 0.1
|
||||
|
||||
ENDSCAN = False # close shutter at end
|
||||
|
||||
|
||||
def trig():
|
||||
wait_beam()
|
||||
#caput("X03DA-OP-10ADC:TRG.PROC", 1)
|
||||
|
||||
try:
|
||||
lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPSIZE, LATENCY, before_read=trig, after_read=after_readout)
|
||||
finally:
|
||||
if ENDSCAN:
|
||||
after_scan()
|
||||
Reference in New Issue
Block a user