Closedown

This commit is contained in:
sfop
2017-01-23 10:27:57 +01:00
parent 3527ebc17a
commit 6a8b3f2c8f
2 changed files with 12 additions and 7 deletions

View File

@@ -15,16 +15,14 @@ phase.initialize()
#st = Stream("ICTstream", dispatcher)
#q = st.addScalar("Charge", "SINEG01-DICT215:B1_CHARGE-SIM", 1, 0)
#st.initialize()
#st.start(True)
q = Channel("SINEG01-DICT215:B1_CHARGE-SIM", type = 'd', alias='ICT-Q')
try:
qb = create_averager(q, nb, 0.100)
r = lscan(phase, (qb), start, stop, step, latency=lat)
rf_phase = r.getPositions(0)
#charge = [val.mean for val in r.getReadable(0)]
charge = [val.mean for val in r.getReadable(0)]
caput("SINEG01-RSYS:GET-PHASE-ARRAY", to_array(rf_phase,'d'))
caput("SINEG01-RSYS:GET-CHARGE-ARRAY", to_array(charge, 'd'))
finally:
phase.close()
q.close()

View File

@@ -18,10 +18,17 @@ phase.initialize()
V = Channel("SINEG01-RSYS:GET-VSUM-AMPLT-SIM", type = 'd', alias='Amplitude Readback')
P = Channel("SINEG01-RSYS:GET-KLY-POWER-SIM", type = 'd', alias='Power Readback')
st = Stream("camstream", dispatcher)
x = st.addScalar("SCR-X", scr_ch + ":camtool.pipeline.x_stats_gr.com_egu", 1, 0)
dx = st.addScalar("SCR-DX", scr_ch + ":camtool.pipeline.x_stats_gr.rms_egu", 1, 0)
st1.initialize()
#st = Stream("camstream", dispatcher)
#x = st.addScalar("SCR-X", scr_ch + ":camtool.pipeline.x_stats_gr.com_egu", 1, 0)
#dx = st.addScalar("SCR-DX", scr_ch + ":camtool.pipeline.x_stats_gr.rms_egu", 1, 0)
#st1.initialize()
#camtool = Camtool(url)
#camtool.startPipeline(camera_name)
#camtool.startReceiver()
#x = camtool.getValue("x_fit_mean")
try:
xb = create_averager(x, nb, 0.100)