54 lines
1.5 KiB
Python
54 lines
1.5 KiB
Python
"""
|
|
author chritstoph seitz
|
|
|
|
starting the xps measurement
|
|
|
|
Fermi edge of C1s 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
|
|
|
|
#importing pearlUtils
|
|
execfile("/sls/X03DA/data/gac-x03da/Data1/2018/10/Granas/XPSstuff/commands/pearlUtils.py")
|
|
|
|
mprint("___starting C1s measure___")
|
|
loadParameterset(pearlU_path+"settings/actual_GE_pos.txt")
|
|
range1 = getParameterset(pearlU_path+"settings/C1s.txt")
|
|
waitForEnergy(range1[0])
|
|
waitForGroup("mov-")
|
|
|
|
if True:
|
|
ranges = [range1]
|
|
# (eph, min, max, step, time, iter)
|
|
|
|
skip_iteration = False
|
|
ENDSCAN = True
|
|
#############################################################################
|
|
# this changes the number of dummy scans zou do next time
|
|
"""
|
|
STEPS = 12
|
|
#############################################################################
|
|
MOTOR = dummy
|
|
RANGE = (0,12)
|
|
"""
|
|
STEPS = 12
|
|
#############################################################################
|
|
MOTOR = ManipulatorZ
|
|
RANGE = (113.5,119.5)
|
|
|
|
RELATIVE = False
|
|
setVal("X03DA-FE-AB1:CLOSE4BL","1") #opening the beam line
|
|
time.sleep(0.5)
|
|
execfile("/sls/X03DA/data/gac-x03da/pshell/home/script/users/Granas/ManipulatorScan_base.py")
|
|
|
|
setVal("X03DA-FE-AB1:CLOSE4BL","0") #closeing the beam line
|
|
|
|
time.sleep(0.5) |