Script execution

This commit is contained in:
voulot_d
2017-01-19 15:13:43 +01:00
parent 51bd6a4b97
commit c99831f957
+5 -5
View File
@@ -12,10 +12,10 @@ phase.config.maxValue = 360.0
phase.config.resolution = 0.5
phase.initialize()
#st = Stream("ICTstream", dispatcher)
#q = st.addScalar("Charge", "SINEG01-DICT215:B1_CHARGE-SIM", 1, 0)
#st.initialize()
q = Channel("SINEG01-DICT215:B1_CHARGE-SIM", type = 'd', alias='ICT-Q')
st = Stream("ICTstream", dispatcher)
q = st.addScalar("Charge", "SINEG01-DICT215:B1_CHARGE-SIM", 1, 0)
st.initialize()
#q = Channel("SINEG01-DICT215:B1_CHARGE-SIM", type = 'd', alias='ICT-Q')
try:
qb = create_averager(q, nb, 0.100)
@@ -31,6 +31,6 @@ finally:
#st.close()
# Here the user needs to pick a phase as reference phase (onset of charge emission)
phase_ref = 27.3
phase_ref = 120.0
phase_offset = - phase_ref
caput("SINEG01-RSYS:CALC-VSUM-PHASE-OFFSET", phase_offset)