From dad78512e93f0d7cde382fe9f19169d8871def40 Mon Sep 17 00:00:00 2001 From: sfop Date: Fri, 20 Jan 2017 10:28:39 +0100 Subject: [PATCH] Script execution --- script/RFscan/phase_scan_caqtdm_sim.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/script/RFscan/phase_scan_caqtdm_sim.py b/script/RFscan/phase_scan_caqtdm_sim.py index 8e353ed..cb6e72b 100644 --- a/script/RFscan/phase_scan_caqtdm_sim.py +++ b/script/RFscan/phase_scan_caqtdm_sim.py @@ -2,9 +2,12 @@ import ch.psi.pshell.epics.ControlledVariable as ControlledVariable if get_exec_pars().source == CommandSource.ui: station = "SINSB04" + bpm_ch = "SINBC01-DBPM140" else: station = args[0] - + bpm_ch = args[1] +print(station) +print(bpm_ch) start = caget(station + "-RSYS:SET-SCAN-START") stop = caget(station + "-RSYS:SET-SCAN-STOP") step = caget(station + "-RSYS:SET-SCAN-STEP") @@ -13,6 +16,8 @@ nb = caget(station + "-RSYS:SET-NUM-AVERAGE") bpm_ch = caget(station + "-RSYS:DBPM") disp = caget(bpm_ch + ":DISPERSION") energy0 = caget(bpm_ch + ":ENERGY") +print(disp) +print(energy0) phase = ControlledVariable("Phase", station + "-RSYS:SET-VSUM-PHASE-SIM", station + "-RSYS:GET-VSUM-PHASE-SIM") phase.config.minValue =-45.0