Script execution

This commit is contained in:
gac-x03da
2018-10-03 22:21:18 +02:00
parent 8b2ffd9600
commit 7e280a4df9
+26 -33
View File
@@ -9,57 +9,45 @@ MOTORS = [Eph]
#262eV : KE = 70eV for B 1s
#200eV : KE = 70eV for Ge 3p
POSITIONS_1 = [550]
POSITIONS_1 = [435]
#for nn in range(0):
# POSITIONS_1.append(POSITIONS_1[-1]+4)
REGION_1 = {'name': 'N 1s', 'elo': 140., 'ehi': 153., 'estep': 0.05, 'epass': 20, 'tstep': 0.5, 'iter': 1, 'cis': True}
REGION_1 = {'name': 'Ge 3d', 'elo': 398., 'ehi': 405., 'estep': 0.05, 'epass': 10, 'tstep': 0.5, 'iter': 10, 'cis': True}
REGIONS_1 = [REGION_1]
POSITIONS_2 = [550]
POSITIONS_2 = [435]
#for nn in range(0):
# POSITIONS_1.append(POSITIONS_1[-1]+4)
REGION_2 = {'name': 'N 1s', 'elo': 140., 'ehi': 153., 'estep': 0.05, 'epass': 20, 'tstep': 0.5, 'iter': 5, 'cis': True}
REGION_2 = {'name': 'Cu 3p', 'elo': 349., 'ehi': 360., 'estep': 0.05, 'epass': 10, 'tstep': 0.5, 'iter': 1, 'cis': True}
REGIONS_2 = [REGION_2]
POSITIONS_3 = [550]
POSITIONS_3 = [300]
#for nn in range(0):
# POSITIONS_1.append(POSITIONS_1[-1]+4)
REGION_3 = {'name': 'N 1s', 'elo': 140., 'ehi': 153., 'estep': 0.05, 'epass': 20, 'tstep': 0.5, 'iter': 5, 'cis': True}
REGION_3 = {'name': 'Si 2p', 'elo': 193., 'ehi': 300., 'estep': 0.05, 'epass': 10, 'tstep': 0.5, 'iter': 10, 'cis': True}
REGIONS_3 = [REGION_3]
POSITIONS_4 = [550]
POSITIONS_4 = [300]
#for nn in range(0):
# POSITIONS_3.append(POSITIONS_3[-1]+4)
REGION_4 = {'name': 'AG 3d', 'elo': 174., 'ehi': 181., 'estep': 0.05, 'epass': 20, 'tstep': 0.5, 'iter': 1, 'cis': True}
REGION_4 = {'name': 'Si 2s', 'elo': 140., 'ehi': 150., 'estep': 0.05, 'epass': 10, 'tstep': 0.5, 'iter': 10, 'cis': True}
REGIONS_4 = [REGION_4]
POSITIONS_5 = [435]
POSITIONS_5 = [300]
#for nn in range(0):
# POSITIONS_3.append(POSITIONS_3[-1]+4)
REGION_5 = {'name': 'ge 3d', 'elo': 398., 'ehi': 405., 'estep': 0.05, 'epass': 10, 'tstep': 0.5, 'iter': 6, 'cis': True}
REGION_5 = {'name': 'Cu 3p', 'elo': 210., 'ehi': 230., 'estep': 0.05, 'epass': 10, 'tstep': 0.5, 'iter': 8, 'cis': True}
REGIONS_5 = [REGION_5]
POSITIONS_6 = [435]
POSITIONS_6 = [70]
#for nn in range(0):
# POSITIONS_3.append(POSITIONS_3[-1]+4)
REGION_6 = {'name': 'c 1s', 'elo': 142., 'ehi': 149., 'estep': 0.05, 'epass': 10, 'tstep': 0.5, 'iter': 3, 'cis': True}
REGION_6 = {'name': 'VB', 'elo': 55., 'ehi': 68., 'estep': 0.05, 'epass': 10, 'tstep': 0.5, 'iter': 7, 'cis': True}
REGIONS_6 = [REGION_6]
POSITIONS_7 = [435]
#for nn in range(0):
# POSITIONS_3.append(POSITIONS_3[-1]+4)
REGION_7 = {'name': 'ag 3d', 'elo': 53., 'ehi': 67., 'estep': 0.05, 'epass': 10, 'tstep': 0.5, 'iter': 1, 'cis': True}
REGIONS_7 = [REGION_7]
POSITIONS_8 = [70]
#for nn in range(0):
# POSITIONS_3.append(POSITIONS_3[-1]+4)
REGION_8 = {'name': 'vb', 'elo': 55., 'ehi': 68., 'estep': 0.05, 'epass': 10, 'tstep': 0.5, 'iter': 7, 'cis': True}
REGIONS_8 = [REGION_8]
# XSP check for beam damage
POSITIONB = [550]
@@ -217,15 +205,15 @@ try:
setup_live_plots(REGIONS_B)
task = fork(update_live_plots)
# theta (polar), phi (azimuth), x, y, z
sample_pos = [[-9.1,-90.0,0.5, -0.4, 115.0],
[-9.1,-90.0,0.5, -0.2, 115.0],
[-9.1,-90.0,0.5, 0.4, 115.0],
[-9.1,-90.0,0.5, 0.4, 115.0],
[-9.1,-90.0,0.5, 0.4, 115.0],
[-9.1,-90.0,0.5, 0.4, 115.0],
[-9.1,-90.0,0.5, 0.4, 115.0],
[-9.1,-90.0,0.5, 0.4, 115.0],
[-9.1,-90.0,0.5, 0.4, 115.0]]
sample_pos = [[-9.1,-90.0,0.6, -0.5, 115.0],
[-9.1,-90.0,0.7, -0.5, 115.0],
[-9.1,-90.0,0.6, -0.4, 115.0],
[-9.1,-90.0,0.7, -0.4, 115.0],
[-9.1,-90.0,0.5, -0.4, 115.0],
[-9.1,-90.0,0.5, -0.3, 115.0],
[-9.1,-90.0,0.8, -0.4, 115.0],
[-9.1,-90.0,0.8, -0.5, 115.0],
[-9.1,-90.0,0.9, -0.5, 115.0]]
#[-9.1,-90.0,0.5, 0.0, 114.0]]
#sample_pos = [[-9.1,-90.0,0.5,-0.5,117.0]]
for nn in sample_pos:
@@ -240,6 +228,11 @@ try:
#do_scan(MOTORS, POSITIONB, REGIONSB, LATENCY) #XPS before PhD
#for bb in range(6):
do_scan(MOTORS, POSITIONS_1, REGIONS_1, LATENCY, nn) #PhD
do_scan(MOTORS, POSITIONS_2, REGIONS_2, LATENCY, nn)
do_scan(MOTORS, POSITIONS_3, REGIONS_3, LATENCY, nn)
do_scan(MOTORS, POSITIONS_4, REGIONS_4, LATENCY, nn)
do_scan(MOTORS, POSITIONS_5, REGIONS_5, LATENCY, nn)
do_scan(MOTORS, POSITIONS_6, REGIONS_6, LATENCY, nn)
#do_scan(MOTORS, POSITIONS_1, REGIONS_1, LATENCY, nn) #PhD
#do_scan(MOTORS, POSITIONS_3, REGIONS_3, LATENCY, nn) #PhD