Closedown
This commit is contained in:
@@ -14,17 +14,17 @@ else:
|
||||
lat = args[4]
|
||||
|
||||
|
||||
phase = ControlledVariable("Phase", "SINEG01-RSYS:SET-VSUM-PHASE-SIM", "SINEG01-RSYS:GET-VSUM-PHASE-SIM")
|
||||
phase = ControlledVariable("Phase", "SINEG01-RSYS:SET-VSUM-PHASE", "SINEG01-RSYS:GET-VSUM-PHASE")
|
||||
phase.config.minValue =-45.0
|
||||
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()
|
||||
#st.start(True)
|
||||
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()
|
||||
st.start(True)
|
||||
#q = Channel("SINEG01-DICT215:B1_CHARGE-SIM", type = 'd', alias='ICT-Q')
|
||||
|
||||
try:
|
||||
qb = create_averager(q, nb, 0.100)
|
||||
@@ -34,11 +34,10 @@ try:
|
||||
chargerms = [val.stdev for val in r.getReadable(0)]
|
||||
finally:
|
||||
phase.close()
|
||||
q.close()
|
||||
#st.close()
|
||||
st.close()
|
||||
#q.close()
|
||||
|
||||
#Setting the return value
|
||||
#set_return(50.0)
|
||||
y = charge
|
||||
x = rf_phase
|
||||
index_max = y.index(max(y))
|
||||
|
||||
Reference in New Issue
Block a user