Script execution

This commit is contained in:
gac-x03da
2022-11-06 14:28:38 +01:00
parent ebe12803b3
commit e5760c0058

View File

@@ -21,7 +21,7 @@ MOTORS = [dummy]
# number of cycles (integer - not decimal point!)
# (actual number of cycles is + 1)
NUMBER_OF_CYCLES = 0.
NUMBER_OF_CYCLES = 60.
POSITIONS = [1., 10., NUMBER_OF_CYCLES]
SCAN = 'lscan'
@@ -48,15 +48,15 @@ LATENCY = 0.0
# 'slit': exit slit (default: unchanged)
# 'position': 'reference' or 'sample'
REFERENCE_POSITION = {'X': -0.8,'Y': 1.2, 'Z': 116.2, 'Theta': -9., 'Tilt': -2.0, 'Phi': -90.}
SAMPLE_POSITION = {'X': -1.2,'Y': 0., 'Z': 113.7, 'Theta': -9., 'Tilt': -2.0, 'Phi': -90.}
REFERENCE_POSITION = {'X': -1.,'Y': 0., 'Z': 116.4, 'Theta': -9., 'Tilt': -2.0, 'Phi': -90.}
SAMPLE_POSITION = {'X': -1.2,'Y': 0., 'Z': 114., 'Theta': -9., 'Tilt': -2.0, 'Phi': -90.}
# REGIONS for 578 eV
#REGION1 = {'name': 'Au4f','elo': 482., 'ehi':492., 'estep': 0.02, 'epass': 50., 'tstep': 0.1, 'iter': 1, 'cis': False, 'position': 'reference'}
#REGION2 = {'name': 'In4d','elo': 552.5, 'ehi':559., 'estep':0.02, 'epass': 50., 'tstep': 0.1, 'iter': 1, 'cis': False, 'position': 'sample'}
#REGION3 = {'name': 'As3d','elo': 529., 'ehi':534.5, 'estep':0.02, 'epass': 50., 'tstep': 0.1, 'iter': 1, 'cis': False, 'position': 'sample'}
#REGION4 = {'name': 'In3d','elo': 119., 'ehi':124., 'estep':0.02, 'epass': 50., 'tstep': 0.1, 'iter': 1, 'cis': False, 'position': 'sample'}
#REGION5 = {'name': 'AuEF','elo': 573., 'ehi':574.5, 'estep': 0.02, 'epass': 50., 'tstep': 0.6, 'iter': 1, 'cis': False, 'position': 'reference'}
REGION1 = {'name': 'Au4f','elo': 482., 'ehi':492., 'estep': 0.02, 'epass': 50., 'tstep': 0.1, 'iter': 1, 'cis': False, 'position': 'reference'}
REGION2 = {'name': 'In4d','elo': 552.5, 'ehi':559., 'estep':0.02, 'epass': 50., 'tstep': 0.1, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION3 = {'name': 'As3d','elo': 529.5, 'ehi':535., 'estep':0.02, 'epass': 50., 'tstep': 0.1, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION4 = {'name': 'In3d','elo': 119., 'ehi':124., 'estep':0.02, 'epass': 50., 'tstep': 0.1, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION5 = {'name': 'AuEF','elo': 573., 'ehi':574.5, 'estep': 0.02, 'epass': 50., 'tstep': 0.6, 'iter': 1, 'cis': False, 'position': 'reference'}
# REGIONS for 1050 eV
#REGION1 = {'name': 'Au4f', 'elo': 954., 'ehi':964, 'estep': 0.02, 'epass': 50., 'tstep': 0.1, 'iter': 1, 'cis': False, 'position': 'reference'}
@@ -66,18 +66,18 @@ SAMPLE_POSITION = {'X': -1.2,'Y': 0., 'Z': 113.7, 'Theta': -9., 'Tilt': -2.0, 'P
#REGION5 = {'name': 'AuEF', 'elo': 1045., 'ehi':1046.5, 'estep':0.02, 'epass': 50., 'tstep': 0.6, 'iter': 1, 'cis': False, 'position': 'reference'}
# Regions of hv dependence
iii=6.
#iii=6.
REGION1 = {'name': 'Au4f','elo': (54.+150.*iii), 'ehi':(64.+150.*iii), 'estep': 0.02, 'epass': 50., 'tstep': 0.1, 'iter': 1, 'cis': False, 'position': 'reference'}
REGION2 = {'name': 'In4d','elo': (124.5+150.*iii), 'ehi':(131.+150.*iii), 'estep':0.02, 'epass': 50., 'tstep': 0.2, 'iter': 1, 'cis': False, 'position': 'sample'}
REGION3 = {'name': 'As3d','elo': (101.+150.*iii), 'ehi':(106.5+150.*iii), 'estep':0.02, 'epass': 50., 'tstep': 0.2, 'iter': 1, 'cis': False, 'position': 'sample'}
#REGION1 = {'name': 'Au4f','elo': (54.+150.*iii), 'ehi':(64.+150.*iii), 'estep': 0.02, 'epass': 50., 'tstep': 0.1, 'iter': 1, 'cis': False, 'position': 'reference'}
#REGION2 = {'name': 'In4d','elo': (124.5+150.*iii), 'ehi':(131.+150.*iii), 'estep':0.02, 'epass': 50., 'tstep': 0.2, 'iter': 1, 'cis': False, 'position': 'sample'}
#REGION3 = {'name': 'As3d','elo': (101.+150.*iii), 'ehi':(106.5+150.*iii), 'estep':0.02, 'epass': 50., 'tstep': 0.2, 'iter': 1, 'cis': False, 'position': 'sample'}
# list of region dictionaries to execute at each scan position
#REGIONS = [REGION1, REGION2, REGION3, REGION4]
REGIONS = [REGION1, REGION2, REGION3, REGION4]
#self-designed regions
REGIONS = [REGION1,REGION2,REGION3]
#REGIONS = [REGION1,REGION2,REGION3]
# close beam shutter and turn off analyser at the end of the scan
# True or False