This commit is contained in:
gac-x03da
2017-11-09 13:57:23 +01:00
parent 360e1f10ff
commit 89b2d7ebff

View File

@@ -0,0 +1,29 @@
"""
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()