This commit is contained in:
voulot_d
2017-01-17 09:20:40 +01:00
parent e305893417
commit 4f3f64474a
3 changed files with 14 additions and 19 deletions

View File

@@ -49,7 +49,6 @@ try:
r = lscan(phase, [Vb, xb], start, stop, step , latency=lat, after_read = after)
rf_phase = r.getPositions(0)
energy = [val.mean/1000.0/disp*energy0 for val in r.getReadable(1)]
print r.getReadable(1)[0].mean
caput(station + "-RSYS:GET-ENERGY-ARRAY", to_array(energy, 'd'))
caput(station + "-RSYS:GET-PHASE-ARRAY", to_array(rf_phase,'d'))
phase_fit_max = None
@@ -89,8 +88,8 @@ caput(station + "-RSYS:CALC-VSUM-AMPLT-SCALE" , amplitude_scale)
caput(station + "-RSYS:CALC-VOLT-POWER-SCALE" , power_scale)
#title="Phase scan "+str(station)
#message=("Energy Gain: %0.3f" % energy_gain + "\n" +
# "Phase Offset: %0.2f" % phase_offset + "\n" +
# "Amplitude Scale: %0.3f" % amplitude_scale + "\n" +
# "Power Scale: %0.3f" % power_scale)
#message=("Energy Gain: %0.3f" % energy_gain + "MeV\n" +
# "Phase Offset: %0.2f" % phase_offset + "deg\n" +
# "Amplitude Scale: %0.3f" % amplitude_scale + "MV\n" +
# "Power Scale: %0.3f" % power_scale) + "1/ohm"
#elog(title, message)