Closedown

This commit is contained in:
voulot_d
2017-01-31 10:42:04 +01:00
parent 7bb50d44ba
commit efea13a197
6 changed files with 451 additions and 34 deletions

View File

@@ -23,7 +23,7 @@ phase.config.maxValue = 360.0
phase.config.resolution = 0.5
phase.initialize()
camtool = Camtool("sflca", "10000")
camtool = Camtool("sflca:10000")
camtool.startPipeline("simulated")
camtool.startReceiver()
x = camtool.getValue("x_fit_mean")
@@ -40,10 +40,6 @@ try:
dE = [val.mean/1000.0/disp*energy0 for val in r.getReadable(1)]
finally:
phase.close()
V.close()
P.close()
st.close()
camtool.close()
p = plot([E, dE],"data", rf_phase, title="Phase scan")[0]
p.addSeries(LinePlotSeries("fit"))
p.getSeries(1).setData(fit_x, fit_y)

View File

@@ -42,7 +42,7 @@ finally:
y = charge
x = rf_phase
index_max = y.index(max(y))
phase_ref = x[index_max] - 90
phase_ref = x[index_max] - 80
phase_offset = - phase_ref
caput("SINEG01-RSYS:CALC-VSUM-PHASE-OFFSET", phase_offset)