Script execution
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user