Script execution

This commit is contained in:
gac-x11ma
2018-08-31 22:08:25 +02:00
parent 561d79d5e3
commit adda46da60

View File

@@ -61,7 +61,7 @@ while (abs(error)) > 1.2:
error = Eset-Ecurr
run('EnergyMultiScan.py',E3) # Mn
'''
caput("X11MA-KEI11:RANGE", 9)
caput("X11MA-KEI12:RANGE", 8)
@@ -76,7 +76,7 @@ while (abs(error)) > 1.2:
run('EnergyMultiScan.py',E2) # O
'''
caput("X11MA-KEI11:RANGE", 10)
caput("X11MA-KEI12:RANGE", 8)
@@ -90,6 +90,18 @@ while (abs(error)) > 1.2:
run('EnergyMultiScan.py',E1) # C
caput("X11MA-KEI11:RANGE", 10)
caput("X11MA-KEI12:RANGE", 9)
Eset = 520
error = 10.0
caput("X11MA-PHS:E_SP",Eset)
while (abs(error)) > 1.2:
time.sleep(1.0)
Ecurr = caget("X11MA-PGM:rbkenergy",'i')
error = Eset-Ecurr
run('EnergyMultiScan.py',E2) # O
caput("X11MA-KEI11:RANGE", 9)
caput("X11MA-KEI12:RANGE", 8)