Script execution
This commit is contained in:
51
script/users/Granas/XPSSpectrum_O1s.py
Normal file
51
script/users/Granas/XPSSpectrum_O1s.py
Normal file
@@ -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)
|
||||
Reference in New Issue
Block a user