Script execution

This commit is contained in:
sfop
2017-04-03 08:50:45 +02:00
parent d5b699da20
commit 5bb0858863

View File

@@ -20,10 +20,11 @@ phase.config.maxValue = 360.0
phase.config.resolution = 0.5
phase.initialize()
st = Stream("ICTstream", dispatcher)
q = st.addScalar("Charge", "SINEG01-DICT215:B1_CHARGE", 1, 0)
st.initialize()
st.start(True)
#st = Stream("ICTstream", dispatcher)
#q = st.addScalar("Charge", "SINEG01-DICT215:B1_CHARGE", 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)
@@ -33,7 +34,8 @@ try:
chargerms = [val.stdev for val in r.getReadable(0)]
finally:
phase.close()
st.close()
q.close()
#st.close()
#Setting the return value
y = charge