From c603445c4d453ad169ee126a6ea628a76d26a45b Mon Sep 17 00:00:00 2001 From: gac-x03da Date: Tue, 19 Nov 2019 18:17:19 +0100 Subject: [PATCH] Script execution --- script/optics/CheckMachineBump.py | 45 +++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 script/optics/CheckMachineBump.py diff --git a/script/optics/CheckMachineBump.py b/script/optics/CheckMachineBump.py new file mode 100644 index 00000000..3bfeb1ec --- /dev/null +++ b/script/optics/CheckMachineBump.py @@ -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"