Files
x03da/script/users/Granas/XPSSpectrum_OV.py
gac-x03da 77d719012e Startup
2018-10-24 15:29:28 +02:00

64 lines
1.7 KiB
Python

"""
author chritstoph seitz
starting the xps measurement
Fermi edge of Zn1s 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")
evalval = False
mprint("___starting overview measure___")
answer = raw_input('did you put the grating? (yes)')
if "yes" not in answer.lower():
print "do it "
else:
loadParameterset(pearlU_path+"settings/NE_actual_pos.txt")
range1 = getParameterset(pearlU_path+"settings/overview.txt")
waitForEnergy(range1[0])
waitForGroup("mov-")
print range1
evalval = True
ranges=[]
if len(range1) >5 and evalval:
ranges.append((range1[0],range1[1],range1[2],range1[3],range1[4],int(round(range1[5]))))
# (eph, min, max, step, time, iter)
#save_scienta_image = True
skip_iteration = False
ENDSCAN = True
pass_energy = 100
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(4)