Files
x03da/script/users/ManipZExposureScan.py
gac-x03da 89b2d7ebff Startup
2017-11-09 13:57:23 +01:00

30 lines
670 B
Python

"""
manipulator Z scan, no Scienta
"""
POSITIONERS = (ManipulatorZ)
SENSORS = (SampleCurrent, RefCurrent, AuxCurrent, MachineCurrent)
STARTPOS = (113.15)
ENDPOS = (117.15)
NUMPOS = 40
STEPSIZE = 0.1
LATENCY = 0.0
DWELL = 14 * 3600 / 40
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)
try:
lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPSIZE, LATENCY, before_read=trig, after_read=after_readout)
finally:
if ENDSCAN:
after_scan()