This commit is contained in:
2016-09-22 15:42:12 +02:00
parent 6ae66394bd
commit 4da7c792e8
2 changed files with 11 additions and 1 deletions
+2 -1
View File
@@ -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)
+9
View File
@@ -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())