Script execution

This commit is contained in:
voulot_d
2017-01-13 10:17:01 +01:00
parent 262156f855
commit b03474eb1d
+6 -2
View File
@@ -61,8 +61,10 @@ try:
except:
raise Exception("Fit failure")
caput(prefix + ":GET-FIT-PHASE-ARRAY", fit_x)
caput(prefix + ":GET-FIT-ENERGY-ARRAY", fit_y)
caput(prefix + ":GET-ONCREST-VSUM-PHASE", phase_fit_max)
caput(prefix + ":GET-ONCREST-E-GAIN", energy_max)
caput(prefix + ":GET-FIT-PHASE-ARRAY", fit_x)
caput(prefix + ":GET-FIT-ENERGY-ARRAY", fit_y)
phase_min, phase_max = min(rf_phase), max(rf_phase)
if not (phase_min <= phase_fit_max <= phase_max):
@@ -72,6 +74,8 @@ try:
time.sleep(lat)
ampl = rf_ampl_rbk.read()
power = rf_power_rbk.read()
caput(prefix + ":GET-ONCREST-VSUM-AMPLT", ampl)
caput(prefix + ":GET-ONCREST-KLY-POWER", power)
finally:
rf_phase_var.close()
rf_ampl_rbk.close()