From 202f4104b2a28ec0c3c410e05e9eae1fa7509ab2 Mon Sep 17 00:00:00 2001 From: voulot_d Date: Tue, 14 Feb 2017 11:24:18 +0100 Subject: [PATCH] Script execution --- script/RFscan/GunScan.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/RFscan/GunScan.py b/script/RFscan/GunScan.py index 34afdea..b64be12 100644 --- a/script/RFscan/GunScan.py +++ b/script/RFscan/GunScan.py @@ -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]