From 4da7c792e80f74705ab1fa2301a598599215290c Mon Sep 17 00:00:00 2001 From: voulot_d Date: Thu, 22 Sep 2016 15:42:12 +0200 Subject: [PATCH] Startup --- script/Correlation.py | 3 ++- script/RFscan/SchottkyICT.py | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 script/RFscan/SchottkyICT.py diff --git a/script/Correlation.py b/script/Correlation.py index 494aa7e..1025388 100644 --- a/script/Correlation.py +++ b/script/Correlation.py @@ -45,7 +45,8 @@ while(True): ax = frange(x1, x2, 1 if (x2==x1) else (x2-x1)/100, True) for x in ax: ay.append(fitted_polynomial_function.value(x)) - sfq.setData(ax, ay) + plot_function(plot, function, name, range, color=Color.BLUE) + #sfq.setData(ax, ay) time.sleep(interval) \ No newline at end of file diff --git a/script/RFscan/SchottkyICT.py b/script/RFscan/SchottkyICT.py new file mode 100644 index 0000000..5c1dd02 --- /dev/null +++ b/script/RFscan/SchottkyICT.py @@ -0,0 +1,9 @@ +import datetime + +knob = Channel("SINEG01-RSYS:SET-BEAM-PHASE", 'd', alias = "RF phase") +instrument = Channel("SINEG01-DICT215:CHARGE", 'd', alias = "Bunch Charge (ICT)") + +r = lscan(knob, [instrument], -120., 60., 10.,2.0) + + +elog("SchottkyICT", "Data file: " + get_context().path + "\n\n" + r.print() , get_plot_snapshots())