From b8874cd930b2ae65ca45295d00fad319ea916dd6 Mon Sep 17 00:00:00 2001 From: voulot_d Date: Mon, 30 Jan 2017 17:09:51 +0100 Subject: [PATCH] Script execution --- script/RFscan/GunScan.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/script/RFscan/GunScan.py b/script/RFscan/GunScan.py index 2963fff..53618b9 100644 --- a/script/RFscan/GunScan.py +++ b/script/RFscan/GunScan.py @@ -12,6 +12,9 @@ else: step = args[2] nb = int(args[3]) lat = args[4] + +disp = 0.32 +energy0 = 6.5 phase = ControlledVariable("Phase", "SINEG01-RSYS:SET-VSUM-PHASE-SIM", "SINEG01-RSYS:GET-VSUM-PHASE-SIM") phase.config.minValue =-45.0 @@ -19,12 +22,12 @@ phase.config.maxValue = 360.0 phase.config.resolution = 0.5 phase.initialize() -#camtool = Camtool(url) -#camtool.startPipeline(camera_name) -#camtool.startReceiver() -#x = camtool.getValue("x_fit_mean") -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') +camtool = Camtool(sflca:10000) +camtool.startPipeline(camera_name) +camtool.startReceiver() +x = camtool.getValue("x_fit_mean") +#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') try: