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: