add scripts and devices for front end scans

This commit is contained in:
x03daop
2016-05-23 10:32:47 +02:00
parent afa6476063
commit 438234ac4c
2 changed files with 1 additions and 39 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ time.sleep(10.0)
STARTPOS = (-4.0)
ENDPOS = (+4.0)
STEPS = 0.025
STEPS = 0.1
POSITIONERS = (FrontendBladeRing)
FrontendBladeWall.write(-4.0)
-38
View File
@@ -1,38 +0,0 @@
"""
front end calibration scans
"""
import time
SENSORS = (RefCurrent, AuxCurrent, MachineCurrent)
STARTPOS = (-1.5)
ENDPOS = (+1.5)
STEPS = 0.01
LATENCY = 1.0
DWELL = 1.0
def trig():
wait_beam()
caput("X03DA-OP-10ADC:TRG.PROC", 1)
value = DWELL * 10.0
SampleCurrentAveraging.write(value)
RefCurrentAveraging.write(value)
AuxCurrentAveraging.write(value)
RefCurrentGain.write("L, 10^7")
AuxCurrentGain.write("L, 10^7")
FrontendHSize.write(2.0)
FrontendVSize.write(2.0)
ExitSlit.write(25.0)
MonoBeta.write(-87.0)
MonoTheta.write(+87.0)
time.sleep(30.0)
POSITIONERS = (FrontendBladeUp)
lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, before_read=trig, after_read=after_readout)
POSITIONERS = (FrontendBladeDown)
lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, before_read=trig, after_read=after_readout)