Tilt homing
This commit is contained in:
+39
@@ -0,0 +1,39 @@
|
||||
##Constants
|
||||
AVERAGE = 1
|
||||
EXPOSURE = 1.0
|
||||
MEASUREMENTS = 5
|
||||
|
||||
##TakeImage at 710 eV at the given polarization
|
||||
change_energy(712)
|
||||
take_image(scans=1, switch_pol=False, measurements=MEASUREMENTS, exposure=EXPOSURE, average=AVERAGE)
|
||||
time.sleep(2.0)
|
||||
#
|
||||
#TwoImages Two Pol with C+/C- and ID1 + ID2, tune-detune, at 710 eV
|
||||
set_beamline_setup(id ="ID1_ID2", en=710, pol1="Circ_Plus", alp1=0.0, har1=1, off1=0.0, pol2="Circ_Minus", alp2=0.0, har2=1, off2=0.0)
|
||||
two_pol(switching="Tune_Detune", sequence="A", measurements=MEASUREMENTS, exposure=EXPOSURE, average=AVERAGE)
|
||||
time.sleep(2.0)
|
||||
|
||||
#TwoEnergies with lin hor polarization ID2 only (normal)
|
||||
set_beamline_setup(id ="ID2", en=710, pol2="Lin_Hor")
|
||||
two_energies(705, 710, measurements=MEASUREMENTS, exposure=EXPOSURE, average=AVERAGE)
|
||||
time.sleep(2.0)
|
||||
|
||||
#abs_spec(ranges=[[500.0, 1000.0, 100.0],], switch_pol=False, scans=1, exposure=EXPOSURE, average=AVERAGE) #Use manulally defined ranges and rois defined in GUI
|
||||
abs_spec(ranges="Fe_L3_fine", roi="test", switch_pol=False, scans=1, exposure=EXPOSURE, average=AVERAGE)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#Direct functions to change energy, pol, offset:
|
||||
#change_energy(700)
|
||||
#change_pol(1, "Circ_Plus" ) #Pol on ID1: "Circ_Plus", "Circ_Minus" , "Lin_Hor", "Lin_Ver"
|
||||
#change_pol(1, "Lin" , alpha = "0" ) #Lin pol on ID 1
|
||||
#change_offset(1, 0.0) #offset on ID1
|
||||
|
||||
#Auto-switching:
|
||||
#switch_pol()
|
||||
|
||||
#Restoring beamline state defined in last set_beamline_setut:
|
||||
#restore_beamline_setup()
|
||||
@@ -0,0 +1,34 @@
|
||||
#auto_intensity()
|
||||
#time_sleep(2)
|
||||
#TakeImage at 710 eV at the given polarization
|
||||
|
||||
# do autoajust, give 1 minute to settle, do image aquisition with 5 frame average and go to sleep after
|
||||
# entire run should take 10 min per loop execution
|
||||
#Constants
|
||||
# otf_img(700, 750, time=1, delay = 0.1, exposure=0.2, roi="test", name="test", save_images=True)
|
||||
|
||||
AVERAGE1 = 1
|
||||
AVERAGE2 = 5
|
||||
EXPOSURE1 = 0.5
|
||||
EXPOSURE2 = 1.0
|
||||
MEASUREMENTS = 1
|
||||
i = 0
|
||||
#change_energy(709.4)
|
||||
time.sleep(20)
|
||||
for i in range(0, 30):
|
||||
# open_vg10()
|
||||
#time.sleep(1)
|
||||
#auto_intensity()
|
||||
#close_vg10()
|
||||
time.sleep(30)
|
||||
#open_vg10()
|
||||
#otf_img(704, 720, time=1.5, delay = 0.1, exposure=0.5, roi="test", name="400C_H2", save_images=True)
|
||||
#time.sleep(10)
|
||||
#close_vg10()
|
||||
abs_spec(ranges="Fe_L3__Arik_Beck_fine", roi="test", switch_pol = False, scans=1, exposure=EXPOSURE1, average=AVERAGE1)
|
||||
time.sleep(10)
|
||||
change_energy(709.4)
|
||||
time.sleep(10)
|
||||
take_image(scans=1, switch_pol=False, measurements=MEASUREMENTS, exposure=EXPOSURE1, average=AVERAGE2)
|
||||
time.sleep(270)
|
||||
print(i)
|
||||
@@ -0,0 +1,22 @@
|
||||
#auto_intensity()
|
||||
#time_sleep(2)
|
||||
#TakeImage at 710 eV at the given polarization
|
||||
|
||||
# do autoajust, give 1 minute to settle, do image aquisition with 5 frame average and go to sleep after
|
||||
# entire run should take 10 min per loop execution
|
||||
#Constants
|
||||
AVERAGE = 5
|
||||
EXPOSURE = 1.0
|
||||
MEASUREMENTS = 1
|
||||
i = 0
|
||||
change_energy(709.4)
|
||||
time.sleep(60)
|
||||
for i in range(0, 23):
|
||||
# open_vg10()
|
||||
#time.sleep(1)
|
||||
#auto_intensity()
|
||||
#close_vg10()
|
||||
time.sleep(60)
|
||||
take_image(scans=1, switch_pol=False, measurements=MEASUREMENTS, exposure=EXPOSURE, average=AVERAGE)
|
||||
time.sleep(534)
|
||||
print(i)
|
||||
@@ -0,0 +1,23 @@
|
||||
#Constants
|
||||
AVERAGE = 1
|
||||
EXPOSURE = 2.0
|
||||
MEASUREMENTS = 50
|
||||
Energies=[]
|
||||
step=0.2
|
||||
for item in range(0,20,1):
|
||||
Energies.append(round(642.0 - item*step, 1))
|
||||
|
||||
#Energies=[ 640.8,641,641.2,641.4,641.6,] #5 maximum
|
||||
#Energies=[637, 637.2, 637.4, 637.6, 637.8, 638, 638.2, 638.4, 638.6, 638.8, 639, 639.2, 639.4, 639.6, 639.8, 640, 640.5, 641]
|
||||
#TakeImage at 710 eV at the given polarization
|
||||
change_energy(638.2)
|
||||
|
||||
#TwoImages Two Pol with C+/C- and ID1 + ID2, tune-detune, at 710 eV
|
||||
set_beamline_setup(id ="ID1_ID2", en=638.2, pol1="Circ_Plus", alp1=0.0, har1=1, off1=0.0, pol2="Circ_Minus", alp2=0.0, har2=1, off2=0.0)
|
||||
time.sleep(2.0)
|
||||
two_pol(switching="Tune_Detune", sequence="A", measurements=MEASUREMENTS, exposure=EXPOSURE, average=AVERAGE)
|
||||
time.sleep(2.0)
|
||||
for item in Energies:
|
||||
change_energy(item)
|
||||
two_pol(switching="Tune_Detune", sequence="A", measurements=MEASUREMENTS, exposure=EXPOSURE, average=AVERAGE)
|
||||
time.sleep(2.0)
|
||||
@@ -0,0 +1,49 @@
|
||||
#Constants
|
||||
AVERAGE = 3
|
||||
EXPOSURE = 2.0
|
||||
MEASUREMENTS = 50
|
||||
|
||||
#TakeImage at 710 eV at the given polarization
|
||||
change_energy(639)
|
||||
#take_image(scans=1, switch_pol=False, measurements=MEASUREMENTS, exposure=EXPOSURE, average=AVERAGE)
|
||||
time.sleep(2.0)
|
||||
|
||||
#TwoImages Two Pol with Lin_hor/lin_ver and ID1 + ID2, tune-detune, at 638.8 eV
|
||||
set_beamline_setup(id ="ID1_ID2", en=638.8, pol1="Lin_Hor", alp1=0.0, har1=1, off1=0.0, pol2="Lin_Ver", alp2=90.0, har2=1, off2=0.0)
|
||||
two_pol(switching="Tune_Detune", sequence="A", measurements=MEASUREMENTS, exposure=EXPOSURE, average=AVERAGE)
|
||||
time.sleep(2.0)
|
||||
|
||||
change_energy(637.5)
|
||||
time.sleep(2.0)
|
||||
two_pol(switching="Tune_Detune", sequence="A", measurements=MEASUREMENTS, exposure=EXPOSURE, average=AVERAGE)
|
||||
time.sleep(2.0)
|
||||
|
||||
#TwoImages Two Pol with C+/C- and ID1 + ID2, tune-detune, at 710 eV
|
||||
set_beamline_setup(id ="ID1_ID2", en=638.2, pol1="Circ_Plus", alp1=0.0, har1=1, off1=0.0, pol2="Circ_Minus", alp2=0.0, har2=1, off2=0.0)
|
||||
two_pol(switching="Tune_Detune", sequence="A", measurements=MEASUREMENTS, exposure=EXPOSURE, average=AVERAGE)
|
||||
time.sleep(2.0)
|
||||
|
||||
#TwoEnergies with lin hor polarization ID2 only (normal)
|
||||
#set_beamline_setup(id ="ID2", en=710, pol1="Lin_Hor")
|
||||
#two_energies(705, 710, measurements=MEASUREMENTS, exposure=EXPOSURE, average=AVERAGE)
|
||||
#time.sleep(2.0)
|
||||
|
||||
#abs_spec(ranges=[[500.0, 1000.0, 100.0],], switch_pol=False, scans=1, exposure=EXPOSURE, average=AVERAGE) #Use manulally defined ranges and rois defined in GUI
|
||||
#abs_spec(ranges="C_edge", roi="test", switch_pol=False, scans=1, exposure=EXPOSURE, average=AVERAGE)
|
||||
|
||||
|
||||
|
||||
#manip_x.write(0.1)
|
||||
|
||||
|
||||
#Direct functions to change energy, pol, offset:
|
||||
#change_energy(700)
|
||||
#change_pol(1, "Circ_Plus" ) #Pol on ID1: "Circ_Plus", "Circ_Minus" , "Lin_Hor", "Lin_Ver"
|
||||
#change_pol(1, "Lin" , alpha = "0" ) #Lin pol on ID 1
|
||||
#change_offset(1, 0.0) #offset on ID1
|
||||
|
||||
#Auto-switching:
|
||||
#switch_pol()
|
||||
|
||||
#Restoring beamline state defined in last set_beamline_setut:
|
||||
#restore_beamline_setup()
|
||||
@@ -0,0 +1,29 @@
|
||||
#Constants
|
||||
AVERAGE = 1
|
||||
EXPOSURE = 1.0
|
||||
MEASUREMENTS = 50
|
||||
positions=[-510, -525, -540, -555, -570, -585]
|
||||
for position in positions:
|
||||
manip_x.write(position)
|
||||
time.sleep(60)
|
||||
#auto_intensity()
|
||||
#time_sleep(2)
|
||||
#TakeImage at 710 eV at the given polarization
|
||||
change_energy(638.8)
|
||||
#take_image(scans=1, switch_pol=False, measurements=MEASUREMENTS, exposure=EXPOSURE, average=AVERAGE)
|
||||
time.sleep(2.0)
|
||||
|
||||
#TwoImages Two Pol with Lin_hor/lin_ver and ID1 + ID2, tune-detune, at 638.8 eV
|
||||
set_beamline_setup(id ="ID1_ID2", en=638.8, pol1="Lin_Hor", alp1=0.0, har1=1, off1=0.0, pol2="Lin_Ver", alp2=90.0, har2=1, off2=0.0)
|
||||
two_pol(switching="Tune_Detune", sequence="A", measurements=MEASUREMENTS, exposure=EXPOSURE, average=AVERAGE)
|
||||
time.sleep(2.0)
|
||||
|
||||
change_energy(638.0)
|
||||
time.sleep(2.0)
|
||||
two_pol(switching="Tune_Detune", sequence="A", measurements=MEASUREMENTS, exposure=EXPOSURE, average=AVERAGE)
|
||||
time.sleep(2.0)
|
||||
|
||||
#TwoImages Two Pol with C+/C- and ID1 + ID2, tune-detune, at 710 eV
|
||||
set_beamline_setup(id ="ID1_ID2", en=638.2, pol1="Circ_Plus", alp1=0.0, har1=1, off1=0.0, pol2="Circ_Minus", alp2=0.0, har2=1, off2=0.0)
|
||||
two_pol(switching="Tune_Detune", sequence="A", measurements=MEASUREMENTS, exposure=EXPOSURE, average=AVERAGE)
|
||||
time.sleep(2.0)
|
||||
@@ -0,0 +1,32 @@
|
||||
#Constants
|
||||
AVERAGE = 4
|
||||
EXPOSURE = 2.0
|
||||
MEASUREMENTS = 50
|
||||
|
||||
#TakeImage at 710 eV at the given polarization
|
||||
#change_energy(639)
|
||||
#take_image(scans=1, switch_pol=False, measurements=MEASUREMENTS, exposure=EXPOSURE, average=AVERAGE)
|
||||
#time.sleep(2.0)
|
||||
|
||||
#TwoImages Two Pol with Lin_hor/lin_ver and ID1 + ID2, tune-detune, at 638.8 eV
|
||||
#set_beamline_setup(id ="ID1_ID2", en=638.9, pol1="Lin_Hor", alp1=0.0, har1=1, off1=0.0, pol2="Lin_Ver", alp2=90.0, har2=1, off2=0.0)
|
||||
#two_pol(switching="Tune_Detune", sequence="A", measurements=MEASUREMENTS, exposure=EXPOSURE, average=AVERAGE)
|
||||
#time.sleep(2.0)
|
||||
for i in range(1):
|
||||
change_energy(638.2)
|
||||
time.sleep(2.0)
|
||||
|
||||
#TwoImages Two Pol with C+/C- and ID1 + ID2, tune-detune, at 710 eV
|
||||
set_beamline_setup(id ="ID1_ID2", en=638.2, pol1="Circ_Plus", alp1=0.0, har1=1, off1=0.0, pol2="Circ_Minus", alp2=0.0, har2=1, off2=0.0)
|
||||
two_pol(switching="Tune_Detune", sequence="A", measurements=MEASUREMENTS, exposure=EXPOSURE, average=AVERAGE)
|
||||
time.sleep(2.0)
|
||||
|
||||
change_energy(637.6)
|
||||
time.sleep(2.0)
|
||||
|
||||
set_beamline_setup(id ="ID1_ID2", en=637.6, pol1="Lin_Hor", alp1=0.0, har1=1, off1=0.0, pol2="Lin_Ver", alp2=90.0, har2=1, off2=0.0)
|
||||
time.sleep(2.0)
|
||||
two_pol(switching="Tune_Detune", sequence="A", measurements=MEASUREMENTS, exposure=EXPOSURE, average=AVERAGE)
|
||||
time.sleep(2.0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user