Script execution

This commit is contained in:
sfop
2016-07-07 15:00:53 +02:00
parent 169b166b18
commit 0cdfaedffe

View File

@@ -48,13 +48,13 @@ try:
caput(prefix + ":GET-FIT-PHASE-ARRAY", fit_x)
caput(prefix + ":GET-FIT-ENERGY-ARRAY", fit_y)
phase_min, phase_max = min(phase), max(phase)
phase_min, phase_max = min(rf_phase), max(rf_phase)
if not (phase_min <= phase_fit_max <= phase_max):
raise Exception("Fit maximum outside scan range")
rf_phase_var.write(phase_fit_max)
time.sleep(lat)
ampl = rf_ampl_readback.read()
ampl = rf_ampl_rbk.read()
power = rf_power_rbk.read()
finally:
rf_phase_var.close()