74 lines
2.5 KiB
Python
74 lines
2.5 KiB
Python
|
|
#Constants
|
|
AVERAGE = 10
|
|
EXPOSURE = 5
|
|
MEASUREMENTS = 40
|
|
|
|
#TwoImages Two Pol with C+/C- and ID1 + ID2, tune-detune, at 710 eV
|
|
set_beamline_setup(id ="ID1_ID2", en=706.7, 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=706.7, pol1="Lin_Hor")
|
|
two_energies(706.7, 703, measurements=MEASUREMENTS, exposure=EXPOSURE, average=AVERAGE)
|
|
time.sleep(2.0)
|
|
|
|
#TwoEnergies with lin hor polarization ID2 only (normal)
|
|
set_beamline_setup(id ="ID2", en=464.2, pol1="Lin_Hor")
|
|
two_energies(462.6, 458.2, measurements=MEASUREMENTS, exposure=EXPOSURE, average=AVERAGE)
|
|
time.sleep(2.0)
|
|
|
|
|
|
|
|
#Constants
|
|
AVERAGE2 = 4
|
|
EXPOSURE2 = 4.0
|
|
|
|
change_energy(703)
|
|
abs_spec(ranges="Fe_L32__Arik_Beck_fine", roi="saraROI", switch_pol=False, scans=1, exposure=EXPOSURE2, average=AVERAGE2)
|
|
|
|
|
|
#Constants
|
|
AVERAGE3 = 1
|
|
EXPOSURE3 = 4.0
|
|
|
|
change_energy(450)
|
|
abs_spec(ranges="Ti_Sara", roi="saraROI", switch_pol=False, scans=1, exposure=EXPOSURE3, average=AVERAGE3)
|
|
|
|
change_energy(523)
|
|
abs_spec(ranges="O_Sara", roi="saraROI", switch_pol=False, scans=1, exposure=EXPOSURE3, average=AVERAGE3)
|
|
|
|
|
|
|
|
|
|
|
|
#TakeImage at 710 eV at the given polarization
|
|
#change_energy(710)
|
|
#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, 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
|
|
|
|
|
|
#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() |