Script execution

This commit is contained in:
gac-x03da
2018-10-13 13:23:36 +02:00
parent fc2cb1e182
commit afe2bb0e51

View File

@@ -0,0 +1,24 @@
measurement = ""
path = "/sls/X03DA/data/gac-x03da/Data1/2018/10/Granas/XPSstuff/commands/set_measure.txt"
for i in range(60):
time.sleep(4)
if os.path.exits(path):
cont = open(path).read()
if "manipulator spectrum O1s" in cont:
select_edge_tmp = "O1s "
execfile("/sls/X03DA/data/gac-x03da/pshell/home/script/users/Granas/ManipulatorScan.py")
elif "fermi edge O1s" in cont:
select_edge_tmp = "O1s "
execfile("/sls/X03DA/data/gac-x03da/pshell/home/script/users/Granas/XPSSpectrum.py")
elif "fermi edge C1s" in cont:
select_edge_tmp = "O1s "
execfile("/sls/X03DA/data/gac-x03da/pshell/home/script/users/Granas/XPSSpectrum.py")
elif "manipulator spectrum C1s" in cont:
select_edge_tmp = "C1s "
execfile("/sls/X03DA/data/gac-x03da/pshell/home/script/users/Granas/ManipulatorScan.py")
if "exit_loop":
break