Files
x11ma/script/Users/Cinthia/hyst_ID2_Fe_all_samples.py
2021-06-30 16:15:12 +02:00

238 lines
8.5 KiB
Python

time.sleep(1)
open_vg13()
open_vg13()
'''
#Sample M1
TRY.write(-1.5)
TRZ.write(14)
time.sleep(30)
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 7)
caput('X11MA-KEI12:RANGE', 8)
for i in range(1):
B1 = 2.0 # starting mag. field in Amps
B2 = -2.0 # final mag. field in Amps
BSTEP = 0.04 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,707.4) #list of energies in eV
MODE = 2 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -1.2 #ID2 offset
FIELD_PRECISION = 0.03 #
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')
B1 = 2.0 # starting mag. field in Amps
B2 = -2.0 # final mag. field in Amps
BSTEP = 0.04 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,707.4) #list of energies in eV
MODE = 1 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -1.2 #ID2 offset
FIELD_PRECISION = 0.03 #
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')
#Sample M2
TRY.write(-0.9)
TRZ.write(22.5)
time.sleep(30)
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 7)
caput('X11MA-KEI12:RANGE', 8)
for i in range(1):
B1 = 2.0 # starting mag. field in Amps
B2 = -2.0 # final mag. field in Amps
BSTEP = 0.04 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,707.4) #list of energies in eV
MODE = 2 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -1.2 #ID2 offset
FIELD_PRECISION = 0.03 #
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="M2_Cp"
B1 = 2.0 # starting mag. field in Amps
B2 = -2.0 # final mag. field in Amps
BSTEP = 0.04 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,707.4) #list of energies in eV
MODE = 1 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -1.2 #ID2 offset
FIELD_PRECISION = 0.03 #
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')
#Sample M3
TRY.write(-0.9)
TRZ.write(30)
time.sleep(30)
FILENAME="M3"
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 7)
caput('X11MA-KEI12:RANGE', 8)
for i in range(1):
FILENAME="M3_Cm"
B1 = 2.0 # starting mag. field in Amps
B2 = -2.0 # final mag. field in Amps
BSTEP = 0.05 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,707.4) #list of energies in eV
MODE = 2 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -1.2 #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="M3_Cp"
B1 = 2.0 # starting mag. field in Amps
B2 = -2.0 # final mag. field in Amps
BSTEP = 0.05 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,707.4) #list of energies in eV
MODE = 1 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -1.2 #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')
'''
#Sample M4
TRY.write(1.0)
TRZ.write(18)
time.sleep(30)
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 7)
caput('X11MA-KEI12:RANGE', 9)
for i in range(1):
FILENAME="M4_Cm"
B1 = 2.0 # starting mag. field in Amps
B2 = -2.0 # final mag. field in Amps
BSTEP = 0.05 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,707.4) #list of energies in eV
MODE = 2 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -1.2 #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="M4_Cp"
B1 = 2.0 # starting mag. field in Amps
B2 = -2.0 # final mag. field in Amps
BSTEP = 0.05 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,707.4) #list of energies in eV
MODE = 1 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -1.2 #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')
#Sample M5
TRY.write(2.0)
TRZ.write(24.5)
time.sleep(30)
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 7)
caput('X11MA-KEI12:RANGE', 9)
for i in range(1):
FILENAME="M5_Cm"
B1 = 2.0 # starting mag. field in Amps
B2 = -2.0 # final mag. field in Amps
BSTEP = 0.05 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,707.4) #list of energies in eV
MODE = 2 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -1.2 #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="M5_Cp"
B1 = 2.0 # starting mag. field in Amps
B2 = -2.0 # final mag. field in Amps
BSTEP = 0.05 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,707.4) #list of energies in eV
MODE = 1 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -1.2 #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')
#Sample M6
TRY.write(2.0)
TRZ.write(30)
time.sleep(30)
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 7)
caput('X11MA-KEI12:RANGE', 9)
for i in range(1):
FILENAME="M6_Cm"
B1 = 2.0 # starting mag. field in Amps
B2 = -2.0 # final mag. field in Amps
BSTEP = 0.05 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,707.4) #list of energies in eV
MODE = 2 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -1.2 #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="M6_Cp"
B1 = 2.0 # starting mag. field in Amps
B2 = -2.0 # final mag. field in Amps
BSTEP = 0.05 # step size mag. field in Amps. in Amps (1mT ~0.25A)
ENERGIES = (700,707.4) #list of energies in eV
MODE = 1 #polarization (CIRC+ -> 1 or CIRC- -> 2)
OFFSET2 = -1.2 #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()