Files
x11ma/script/Users/Cinthia/Fe_XMCD_hyst_samples.py
2022-05-24 10:16:16 +02:00

274 lines
10 KiB
Python

open_vg13()
time.sleep(1)
'''
#XMCD
caput('X11MA-ES3-MAG1:V', 5)
#time.sleep(15)
TRZ.write(18.4)
sample_name='8nm'
for i in range(3):
#time.sleep(1)
otf2(start=695, end=760, time=4, delay=10, mode='CIRC +', alpha = 0.0, offset=-9.0, name='Fe_'+sample_name + '_Cp')
otf2(start=695, end=760, time=4, delay=10, mode='CIRC -', alpha = 0.0, offset=-10.0, name='Fe_'+sample_name + '_Cm')
otf2(start=695, end=760, time=4, delay=10, mode='CIRC -', alpha = 0.0, offset=-10.0, name='Fe_'+sample_name + '_Cm')
otf2(start=695, end=760, time=4, delay=10, mode='CIRC +', alpha = 0.0, offset=-9.0, name='Fe_'+sample_name + '_Cp')
# HYST
for i in range(1):
FILENAME='Hyst_'+ sample_name + '_Cm'
B1 = 5.0 # starting mag. field in Amps
B2 = -5.0 # final mag. field in Amps
BSTEP = 0.1 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,709) #list of energies in eV
MODE = 2 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -10.0 #ID2 offset
FIELD_PRECISION = 0.04 #
ENERGY_CHANGE_SLEEP = 0.5 # put the Enerrgy settling time if needed
FIELD_CHANGE_SLEEP = 0.5 # put the Field settling time if needed
ACC_TIME = 0.1 #I think this number x 10 is in seconds
run('/sls/X11MA/data/X11MA/pshell/home/script/Users/Cinthia/field_sweepID2.py')
FILENAME='Hyst_'+ sample_name + '_Cp'
B1 = 5.0 # starting mag. field in Amps
B2 = -5.0 # final mag. field in Amps
BSTEP = 0.1 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,709) #list of energies in eV
MODE = 1 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -9.0 #ID2 offset
FIELD_PRECISION = 0.04 #
ENERGY_CHANGE_SLEEP = 0.5 # put the Enerrgy settling time if needed
FIELD_CHANGE_SLEEP = 0.5 # put the Field settling time if needed
ACC_TIME = 0.1 #I think this number x 10 is in seconds
run('/sls/X11MA/data/X11MA/pshell/home/script/Users/Cinthia/field_sweepID2.py')
#XMCD
caput('X11MA-ES3-MAG1:V', 5)
#time.sleep(15)
TRZ.write(26.4)
sample_name='3nm'
for i in range(3):
#time.sleep(1)
otf2(start=695, end=760, time=4, delay=10, mode='CIRC +', alpha = 0.0, offset=-9.0, name='Fe_'+sample_name + '_Cp')
otf2(start=695, end=760, time=4, delay=10, mode='CIRC -', alpha = 0.0, offset=-10.0, name='Fe_'+sample_name + '_Cm')
otf2(start=695, end=760, time=4, delay=10, mode='CIRC -', alpha = 0.0, offset=-10.0, name='Fe_'+sample_name + '_Cm')
otf2(start=695, end=760, time=4, delay=10, mode='CIRC +', alpha = 0.0, offset=-9.0, name='Fe_'+sample_name + '_Cp')
# HYST
for i in range(1):
FILENAME='Hyst_'+ sample_name + '_Cm'
B1 = 5.0 # starting mag. field in Amps
B2 = -5.0 # final mag. field in Amps
BSTEP = 0.1 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,709) #list of energies in eV
MODE = 2 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -10.0 #ID2 offset
FIELD_PRECISION = 0.04 #
ENERGY_CHANGE_SLEEP = 0.5 # put the Enerrgy settling time if needed
FIELD_CHANGE_SLEEP = 0.5 # put the Field settling time if needed
ACC_TIME = 0.1 #I think this number x 10 is in seconds
run('/sls/X11MA/data/X11MA/pshell/home/script/Users/Cinthia/field_sweepID2.py')
FILENAME='Hyst_'+ sample_name + '_Cp'
B1 = 5.0 # starting mag. field in Amps
B2 = -5.0 # final mag. field in Amps
BSTEP = 0.1 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,709) #list of energies in eV
MODE = 1 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -9.0 #ID2 offset
FIELD_PRECISION = 0.04 #
ENERGY_CHANGE_SLEEP = 0.5 # put the Enerrgy settling time if needed
FIELD_CHANGE_SLEEP = 0.5 # put the Field settling time if needed
ACC_TIME = 0.1 #I think this number x 10 is in seconds
run('/sls/X11MA/data/X11MA/pshell/home/script/Users/Cinthia/field_sweepID2.py')
#XMCD
caput('X11MA-ES3-MAG1:V', 5)
#time.sleep(15)
TRZ.write(33.8)
sample_name='2nm'
for i in range(3):
#time.sleep(1)
otf2(start=695, end=760, time=4, delay=10, mode='CIRC +', alpha = 0.0, offset=-9.0, name='Fe_'+sample_name + '_Cp')
otf2(start=695, end=760, time=4, delay=10, mode='CIRC -', alpha = 0.0, offset=-10.0, name='Fe_'+sample_name + '_Cm')
otf2(start=695, end=760, time=4, delay=10, mode='CIRC -', alpha = 0.0, offset=-10.0, name='Fe_'+sample_name + '_Cm')
otf2(start=695, end=760, time=4, delay=10, mode='CIRC +', alpha = 0.0, offset=-9.0, name='Fe_'+sample_name + '_Cp')
'''
# HYST
for i in range(1):
FILENAME='Hyst_'+ sample_name + '_Cm'
B1 = 5.0 # starting mag. field in Amps
B2 = -5.0 # final mag. field in Amps
BSTEP = 0.1 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,709) #list of energies in eV
MODE = 2 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -10.0 #ID2 offset
FIELD_PRECISION = 0.04 #
ENERGY_CHANGE_SLEEP = 0.5 # put the Enerrgy settling time if needed
FIELD_CHANGE_SLEEP = 0.5 # put the Field settling time if needed
ACC_TIME = 0.1 #I think this number x 10 is in seconds
run('/sls/X11MA/data/X11MA/pshell/home/script/Users/Cinthia/field_sweepID2.py')
FILENAME='Hyst_'+ sample_name + '_Cp'
B1 = 5.0 # starting mag. field in Amps
B2 = -5.0 # final mag. field in Amps
BSTEP = 0.1 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,709) #list of energies in eV
MODE = 1 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -9.0 #ID2 offset
FIELD_PRECISION = 0.04 #
ENERGY_CHANGE_SLEEP = 0.5 # put the Enerrgy settling time if needed
FIELD_CHANGE_SLEEP = 0.5 # put the Field settling time if needed
ACC_TIME = 0.1 #I think this number x 10 is in seconds
run('/sls/X11MA/data/X11MA/pshell/home/script/Users/Cinthia/field_sweepID2.py')
# repeat loops
caput('X11MA-ES3-MAG1:V', 5)
#time.sleep(15)
TRZ.write(18.4)
sample_name='8nm'
# HYST
for i in range(1):
FILENAME='Hyst_'+ sample_name + '_Cm'
B1 = 5.0 # starting mag. field in Amps
B2 = -5.0 # final mag. field in Amps
BSTEP = 0.1 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,709) #list of energies in eV
MODE = 2 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -10.0 #ID2 offset
FIELD_PRECISION = 0.04 #
ENERGY_CHANGE_SLEEP = 0.5 # put the Enerrgy settling time if needed
FIELD_CHANGE_SLEEP = 0.5 # put the Field settling time if needed
ACC_TIME = 0.1 #I think this number x 10 is in seconds
run('/sls/X11MA/data/X11MA/pshell/home/script/Users/Cinthia/field_sweepID2.py')
FILENAME='Hyst_'+ sample_name + '_Cp'
B1 = 5.0 # starting mag. field in Amps
B2 = -5.0 # final mag. field in Amps
BSTEP = 0.1 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,709) #list of energies in eV
MODE = 1 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -9.0 #ID2 offset
FIELD_PRECISION = 0.04 #
ENERGY_CHANGE_SLEEP = 0.5 # put the Enerrgy settling time if needed
FIELD_CHANGE_SLEEP = 0.5 # put the Field settling time if needed
ACC_TIME = 0.1 #I think this number x 10 is in seconds
run('/sls/X11MA/data/X11MA/pshell/home/script/Users/Cinthia/field_sweepID2.py')
caput('X11MA-ES3-MAG1:V', 5)
#time.sleep(15)
TRZ.write(26.4)
sample_name='3nm'
# HYST
for i in range(1):
FILENAME='Hyst_'+ sample_name + '_Cm'
B1 = 5.0 # starting mag. field in Amps
B2 = -5.0 # final mag. field in Amps
BSTEP = 0.1 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,709) #list of energies in eV
MODE = 2 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -10.0 #ID2 offset
FIELD_PRECISION = 0.04 #
ENERGY_CHANGE_SLEEP = 0.5 # put the Enerrgy settling time if needed
FIELD_CHANGE_SLEEP = 0.5 # put the Field settling time if needed
ACC_TIME = 0.1 #I think this number x 10 is in seconds
run('/sls/X11MA/data/X11MA/pshell/home/script/Users/Cinthia/field_sweepID2.py')
FILENAME='Hyst_'+ sample_name + '_Cp'
B1 = 5.0 # starting mag. field in Amps
B2 = -5.0 # final mag. field in Amps
BSTEP = 0.1 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,709) #list of energies in eV
MODE = 1 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -9.0 #ID2 offset
FIELD_PRECISION = 0.04 #
ENERGY_CHANGE_SLEEP = 0.5 # put the Enerrgy settling time if needed
FIELD_CHANGE_SLEEP = 0.5 # put the Field settling time if needed
ACC_TIME = 0.1 #I think this number x 10 is in seconds
run('/sls/X11MA/data/X11MA/pshell/home/script/Users/Cinthia/field_sweepID2.py')
caput('X11MA-ES3-MAG1:V', 5)
#time.sleep(15)
TRZ.write(33.8)
sample_name='2nm'
# HYST
for i in range(1):
FILENAME='Hyst_'+ sample_name + '_Cm'
B1 = 5.0 # starting mag. field in Amps
B2 = -5.0 # final mag. field in Amps
BSTEP = 0.1 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,709) #list of energies in eV
MODE = 2 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -10.0 #ID2 offset
FIELD_PRECISION = 0.04 #
ENERGY_CHANGE_SLEEP = 0.5 # put the Enerrgy settling time if needed
FIELD_CHANGE_SLEEP = 0.5 # put the Field settling time if needed
ACC_TIME = 0.1 #I think this number x 10 is in seconds
run('/sls/X11MA/data/X11MA/pshell/home/script/Users/Cinthia/field_sweepID2.py')
FILENAME='Hyst_'+ sample_name + '_Cp'
B1 = 5.0 # starting mag. field in Amps
B2 = -5.0 # final mag. field in Amps
BSTEP = 0.1 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,709) #list of energies in eV
MODE = 1 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -9.0 #ID2 offset
FIELD_PRECISION = 0.04 #
ENERGY_CHANGE_SLEEP = 0.5 # put the Enerrgy settling time if needed
FIELD_CHANGE_SLEEP = 0.5 # put the Field settling time if needed
ACC_TIME = 0.1 #I think this number x 10 is in seconds
run('/sls/X11MA/data/X11MA/pshell/home/script/Users/Cinthia/field_sweepID2.py')
close_vg13()