Closedown
This commit is contained in:
@@ -19,9 +19,14 @@ rf_phase_var.config.resolution = 0.001
|
||||
rf_phase_var.initialize()
|
||||
|
||||
rf_ampl_rbk = Channel(prefix + ":GET-VSUM-AMPLT-SIM", type = 'd', alias='Amplitude Readback')
|
||||
rf_ampl_rbk.write(1.0)
|
||||
rf_power_rbk = Channel(prefix + ":GET-KLY-POWER-SIM", type = 'd', alias='Power Readback')
|
||||
bpm_x = Channel(bpm_ch + ":X1-SIM", type = 'd', alias='BPM-X')
|
||||
|
||||
|
||||
caput(prefix + ":GET-FIT-PHASE-ARRAY", to_array([0.0],'d'))
|
||||
caput(prefix + ":GET-FIT-ENERGY-ARRAY", to_array([0.0],'d'))
|
||||
|
||||
#update the plot dynamically
|
||||
arr_phase,arr_energy = [],[]
|
||||
def after(rec):
|
||||
@@ -74,7 +79,7 @@ caput(prefix + ":CALC-VSUM-PHASE-OFFSET", phase_offset)
|
||||
caput(prefix + ":CALC-VSUM-AMPLT-SCALE" , amplitude_scale)
|
||||
caput(prefix + ":CALC-VOLT-POWER-SCALE" , power_scale)
|
||||
|
||||
set_return("Energy Gain: " + str(energy_gain) + "\n" +
|
||||
set_return("\nEnergy Gain: " + str(energy_gain) + "\n" +
|
||||
"Phase Offset: " + str(phase_offset) + "\n" +
|
||||
"Amplitude Scale: " + str(amplitude_scale) + "\n" +
|
||||
"Power Scale: " + str(power_scale))
|
||||
|
||||
Reference in New Issue
Block a user