From c8b3a0db58312d8e34f7646b79a175983ea6b35c Mon Sep 17 00:00:00 2001 From: gac-x03da Date: Sun, 14 Oct 2018 11:06:46 +0200 Subject: [PATCH] Script execution --- script/users/Granas/XPSSpectrum_O1s.py | 51 ++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 script/users/Granas/XPSSpectrum_O1s.py diff --git a/script/users/Granas/XPSSpectrum_O1s.py b/script/users/Granas/XPSSpectrum_O1s.py new file mode 100644 index 00000000..86670b0c --- /dev/null +++ b/script/users/Granas/XPSSpectrum_O1s.py @@ -0,0 +1,51 @@ +""" +author chritstoph seitz + +starting the xps measurement + +Fermi edge of O1s test +""" + + +#Parameters (global variables): +# ranges: list of RangeSelection havinf args = (step_size, step_time, iterations) +# pass_energy +# save_scienta_image +# +# skip_iteration: if set to 1 then skips after end of current iteration + +global ranges, pass_energy, skip_iteration, ENDSCAN +""" old settings +ranges = [] +# (eph, min, max, step, time, iter) +ranges.append((1300.0, 577.0, 593.0, 0.1, 0.2, 1700)) +ranges.append((1300.0, 713.0, 722.0, 0.1, 0.2, 1000)) +ranges.append((1300.0, 1294.5, 1297.0, 0.02, 1, 2)) +pass_energy = 50 +skip_iteration = False +ENDSCAN = True +""" + +#importing pearlUtils +execfile("/sls/X03DA/data/gac-x03da/Data1/2018/10/Granas/XPSstuff/commands/pearlUtils.py") + +mprint("___starting O1s measure___") +loadParameterset(pearlU_path+"settings/screw_GE_pos.txt") +range1 = getParameterset(pearlU_path+"settings/FE_O1s.txt") +waitForEnergy(range1[0]) + + +if len(range1)>5: + ranges = [range1] + # (eph, min, max, step, time, iter) + + skip_iteration = False + ENDSCAN = True + + setVal("X03DA-FE-AB1:CLOSE4BL","1") #opening the beam line + time.sleep(4) + execfile("/sls/X03DA/data/gac-x03da/pshell/home/script/users/Granas/XPSSpectrum_base.py") + + setVal("X03DA-FE-AB1:CLOSE4BL","0") #closeing the beam line + + time.sleep(10) \ No newline at end of file