Script execution

This commit is contained in:
voulot_d
2017-01-13 11:33:17 +01:00
parent 8b49ab0a90
commit c30ef25f87

View File

@@ -48,7 +48,7 @@ def after(rec):
caput(prefix + ":GET-PHASE-ARRAY", to_array(arr_phase,'d'))
try:
r = lscan(rf_phase_var, [rf_ampl_rbk, bpm_x], start, stop, step , latency=lat, after_read = after)
r = lscan(rf_phase_var, [rf_ampl_rbk, bpm_x], start, stop, step , latency=lat, passes=nb, after_read = after)
rf_phase = r.getPositions(0)
energy = [x/1000.0/disp*energy0 for x in r.getReadable(1)]
caput(prefix + ":GET-ENERGY-ARRAY", to_array(energy,'d'))