Script execution

This commit is contained in:
voulot_d
2017-02-14 11:24:18 +01:00
parent 471b4164a9
commit 202f4104b2
+3 -3
View File
@@ -28,8 +28,8 @@ phase.initialize()
#camtool.startReceiver()
#x = camtool.getValue("x_com")
#dx = camtool.getValue("x_rms")
x = Channel("SINEG01-RSYS:GET-VSUM-AMPLT-SIM", type = 'd', alias='Amplitude Readback')
dx = Channel("SINEG01-RSYS:GET-KLY-POWER-SIM", type = 'd', alias='Power Readback')
x = phase
dx = (phase - 85)**2
try:
@@ -41,6 +41,6 @@ try:
dE = [val.mean/1000.0/disp*energy0 for val in r.getReadable(1)]
finally:
phase.close()
camtool.close()
# camtool.close()
p = plot([E, dE],"data", rf_phase, title="Phase scan")[0]