Script execution
This commit is contained in:
45
script/optics/CheckMachineBump.py
Normal file
45
script/optics/CheckMachineBump.py
Normal file
@@ -0,0 +1,45 @@
|
||||
# script for checking the symmetry of the machine bump on Au poly
|
||||
#
|
||||
# set the beamline to FE = 6 x 0.5, Ephot = 800 (G2), EX-SL = 100
|
||||
# acquire the bump control lock manually
|
||||
|
||||
import ch.psi.pshell.plot.RangeSelectionPlot.RangeSelection as RangeSelection
|
||||
|
||||
rs = RangeSelection(706., 714.)
|
||||
rs.setVars([0.1, 0.05, 1]) #Time, Size, Itaration
|
||||
|
||||
|
||||
# MachineBumpControl.write("X03DA")
|
||||
# MachineBumpControl.write("none")
|
||||
|
||||
print "switching to linear"
|
||||
MachineBumpMode.write("off")
|
||||
MachineBumpYAngle.waitValueInRange(0.0, 0.001, 10)
|
||||
print "running XPS spectrum"
|
||||
run("XPSSpectrum", {"save_scienta_image":True,
|
||||
"ranges":[rs, ],
|
||||
"ENDSCAN":False,
|
||||
"pass_energy":50})
|
||||
|
||||
print "switching to positive helicity"
|
||||
MachineBumpMode.write("pos")
|
||||
MachineBumpYAngle.waitValueInRange(0.02, 0.001, 10)
|
||||
print "running XPS spectrum"
|
||||
run("XPSSpectrum", {"save_scienta_image":True,
|
||||
"ranges":[rs, ],
|
||||
"ENDSCAN":False,
|
||||
"pass_energy":50})
|
||||
|
||||
print "switching to negative helicity"
|
||||
MachineBumpMode.write("neg")
|
||||
MachineBumpYAngle.waitValueInRange(-0.02, 0.001, 10)
|
||||
print "running XPS spectrum"
|
||||
run("XPSSpectrum", {"save_scienta_image":True,
|
||||
"ranges":[rs, ],
|
||||
"ENDSCAN":False,
|
||||
"pass_energy":50})
|
||||
|
||||
print "switching to linear"
|
||||
MachineBumpMode.write("off")
|
||||
MachineBumpYAngle.waitValueInRange(0.0, 0.001, 10)
|
||||
print "done"
|
||||
Reference in New Issue
Block a user