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]