Files
x11ma/script/Users/steven/HOLDER3.py
gac-x11ma 99586393b5
2020-09-22 10:39:02 +02:00

486 lines
16 KiB
Python

#########Sample beta
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2020/07/19/beta-new/")
#open_vg13()
#
#TRY.write(6.00)
#TRZ.write(23.90)
#
#
#time.sleep(1)
#
#
####Carbon K edge
###nr_loops=2
###for i in range(nr_loops):
### caput('X11MA-KEI10:RANGE', 7)
### caput('X11MA-KEI11:RANGE', 8)
### caput('X11MA-KEI12:RANGE', 10)
### otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='beta_C', folder='XAS/2020/07/19/beta-new/')
###
###Oxygen K edge
###nr_loops=3
###for i in range(nr_loops):
### caput('X11MA-KEI10:RANGE', 7)
### caput('X11MA-KEI11:RANGE', 8)
### caput('X11MA-KEI12:RANGE', 9)
### otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='beta_O', folder='XAS/2020/07/19/beta-new/')
###
###Fluor + Fe edges
###nr_loops=3
###for i in range(nr_loops):
### caput('X11MA-KEI10:RANGE', 7)
### caput('X11MA-KEI11:RANGE', 8)
### caput('X11MA-KEI12:RANGE', 10)
### otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='beta_F-Fe', folder='XAS/2020/07/19/beta-new/')
###
####Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='beta_Survey', folder='XAS/2020/07/19/beta-new/')
#
#time.sleep(1)
##
##
##
##########Sample SL-RP
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2020/07/19/SL-RP-new/")
#open_vg13()
#
#TRY.write(12.00)
#TRZ.write(27.90)
#
#
#time.sleep(1)
#
####Carbon K edge
###nr_loops=3
###for i in range(nr_loops):
### caput('X11MA-KEI10:RANGE', 7)
### caput('X11MA-KEI11:RANGE', 8)
### caput('X11MA-KEI12:RANGE', 8)
### otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-RP_C', folder='XAS/2020/07/19/SL-RP-new/')
##
####Oxygen K edge
###nr_loops=3
###for i in range(nr_loops):
### caput('X11MA-KEI10:RANGE', 6)
### caput('X11MA-KEI11:RANGE', 8)
### caput('X11MA-KEI12:RANGE', 9)
### otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-RP_O', folder='XAS/2020/07/19/SL-RP-new')
###
###Manganese L edge
###nr_loops=3
###for i in range(nr_loops):
### caput('X11MA-KEI10:RANGE', 7)
### caput('X11MA-KEI11:RANGE', 8)
### caput('X11MA-KEI12:RANGE', 9)
### otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-RP_Mn', folder='XAS/2020/07/19/SL-RP-new/')
###
####Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-RP_F-Fe', folder='XAS/2020/07/19/SL-RP-new/')
#
####Cobalt L edge
###nr_loops=3
###for i in range(nr_loops):
### caput('X11MA-KEI10:RANGE', 7)
### caput('X11MA-KEI11:RANGE', 8)
### caput('X11MA-KEI12:RANGE', 10)
### otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-RP_Co', folder='XAS/2020/07/19/SL-RP-new/')
###
###Nickel L edge
###nr_loops=3
###for i in range(nr_loops):
### caput('X11MA-KEI10:RANGE', 6)
### caput('X11MA-KEI11:RANGE', 8)
### caput('X11MA-KEI12:RANGE', 10)
### otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-RP_Ni', folder='XAS/2020/07/19/SL-RP-new/')
###
####Survey
###nr_loops=2
###for i in range(nr_loops):
### caput('X11MA-KEI10:RANGE', 6)
### caput('X11MA-KEI11:RANGE', 8)
### caput('X11MA-KEI12:RANGE', 9)
### otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-RP_Survey', folder='XAS/2020/07/19/SL-RP-new/')
###
###
####Coper L edge
####nr_loops=1
####for i in range(nr_loops):
#### caput('X11MA-KEI10:RANGE', 6)
#### caput('X11MA-KEI11:RANGE', 8)
#### caput('X11MA-KEI12:RANGE', 10)
#### otf(start=920, end=970, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-RP_Cu', folder='XAS/2020/07/19/SL-RP/')
###
#time.sleep(1)
###
###
##
##########Sample SL-FRP
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2020/07/19/SL-FRP-new/")
#open_vg13()
#
#TRY.write(20.50)
#TRZ.write(26.90)
#
#
#time.sleep(1)
#
###Carbon K edge
###nr_loops=3
###for i in range(nr_loops):
### caput('X11MA-KEI10:RANGE', 7)
### caput('X11MA-KEI11:RANGE', 8)
### caput('X11MA-KEI12:RANGE', 8)
### otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-FRP_C', folder='XAS/2020/07/19/SL-FRP-new/')
###
####Oxygen K edge
###nr_loops=3
###for i in range(nr_loops):
### caput('X11MA-KEI10:RANGE', 6)
### caput('X11MA-KEI11:RANGE', 8)
### caput('X11MA-KEI12:RANGE', 9)
### otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-FRP_O', folder='XAS/2020/07/19/SL-FRP-new/')
###
###Manganese L edge
##nr_loops=4
##for i in range(nr_loops):
## caput('X11MA-KEI10:RANGE', 7)
## caput('X11MA-KEI11:RANGE', 8)
## caput('X11MA-KEI12:RANGE', 9)
## otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-FRP_Mn', folder='XAS/2020/07/19/SL-FRP-new/')
##
###Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-FRP_F-Fe', folder='XAS/2020/07/19/SL-FRP-new/')
#
###Cobalt L edge
##nr_loops=3
##for i in range(nr_loops):
## caput('X11MA-KEI10:RANGE', 7)
## caput('X11MA-KEI11:RANGE', 8)
## caput('X11MA-KEI12:RANGE', 10)
## otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-FRP_Co', folder='XAS/2020/07/19/SL-FRP-new/')
##
###Nickel L edge
##nr_loops=4
##for i in range(nr_loops):
## caput('X11MA-KEI10:RANGE', 6)
## caput('X11MA-KEI11:RANGE', 8)
## caput('X11MA-KEI12:RANGE', 10)
## otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-FRP_Ni', folder='XAS/2020/07/19/SL-FRP-new/')
##
###Survey
##nr_loops=1
##for i in range(nr_loops):
## caput('X11MA-KEI10:RANGE', 6)
## caput('X11MA-KEI11:RANGE', 8)
## caput('X11MA-KEI12:RANGE', 9)
## otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-FRP_Survey', folder='XAS/2020/07/19/SL-FRP-new/')
##
####Coper L edge
###nr_loops=3
###for i in range(nr_loops):
### caput('X11MA-KEI10:RANGE', 6)
### caput('X11MA-KEI11:RANGE', 8)
### caput('X11MA-KEI12:RANGE', 10)
### otf(start=920, end=970, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-FRP_Cu', folder='XAS/2020/07/19/SL-FRP/')
##
#time.sleep(1)
##
##
##
###########Sample SL7
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2020/07/19/SL7-new/")
open_vg13()
TRY.write(13.00)
TRZ.write(11.40)
time.sleep(1)
#
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 8)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL7_C', folder='XAS/2020/07/19/SL7-new/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 6)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL7_O', folder='XAS/2020/07/19/SL7-new/')
#
##Manganese L edge
#nr_loops=6
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL7_Mn', folder='XAS/2020/07/19/SL7-new/')
#
##Fluor + Fe edges
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL7_F-Fe', folder='XAS/2020/07/19/SL7-new/')
##Cobalt L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL7_Co', folder='XAS/2020/07/19/SL7-new/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 6)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL7_Ni', folder='XAS/2020/07/19/SL7-new/')
#
##Survey
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 6)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL7_Survey', folder='XAS/2020/07/19/SL7-new/')
#
time.sleep(1)
#
#
############Sample SL7-F
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2020/07/19/SL7-F-new/")
open_vg13()
TRY.write(21.50)
TRZ.write(20.40)
time.sleep(1)
##
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 8)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL7-F_C', folder='XAS/2020/07/19/SL7-F-new/')
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL7-F_O', folder='XAS/2020/07/19/SL7-F-new/')
##Manganese L edge
#nr_loops=5
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL7-F_Mn', folder='XAS/2020/07/19/SL7-F-new/')
#
##Fluor + Fe edges
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL7-F_F-Fe', folder='XAS/2020/07/19/SL7-F-new/')
##Cobalt L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL7-F_Co', folder='XAS/2020/07/19/SL7-F-new/')
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL7-F_Survey', folder='XAS/2020/07/19/SL7-F-new/')
#
##Nickel L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 9)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL7-F_Ni', folder='XAS/2020/07/19/SL7-F-new/')
#
#time.sleep(1)
#
############Sample SL8
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2020/07/19/SL8-new/")
#open_vg13()
#
#TRY.write(7.50)
#TRZ.write(15.40)
#
#
#time.sleep(1)
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL8_C', folder='XAS/2020/07/19/SL8-new/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL8_O', folder='XAS/2020/07/19/SL8-new/')
#
##Manganese L edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL8_Mn', folder='XAS/2020/07/19/SL8-new/')
#
##Fluor + Fe edges
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL8_F-Fe', folder='XAS/2020/07/19/SL8-new/')
#
##Cobalt L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL8_Co', folder='XAS/2020/07/19/SL8-new/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 9)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL8_Ni', folder='XAS/2020/07/19/SL8-new/')
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL8_Survey', folder='XAS/2020/07/19/SL8-new/')
#
#time.sleep(1)
#
############Sample SL8-F
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2020/07/19/SL8-F-new/")
#open_vg13()
#
#TRY.write(21.00)
#TRZ.write(14.90)
#
#
#time.sleep(1)
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL8-F_C', folder='XAS/2020/07/19/SL8-F-new/')
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL8-F_O', folder='XAS/2020/07/19/SL8-F-new/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL8-F_Mn', folder='XAS/2020/07/19/SL8-F-new/')
#
##Fluor + Fe edges
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL8-F_F-Fe', folder='XAS/2020/07/19/SL8-F-new/')
#
##Cobalt L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL8-F_Co', folder='XAS/2020/07/19/SL8-F-new/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 9)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL7-8_Ni', folder='XAS/2020/07/19/SL8-F-new/')
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL7-8_Survey', folder='XAS/2020/07/19/SL8-F-new/')
#
time.sleep(1)
close_vg13()