Script execution

This commit is contained in:
gobbo_a
2017-04-13 09:40:35 +02:00
parent 1fbb113f33
commit a73161fa38

View File

@@ -17,9 +17,10 @@ else:
phase = ControlledVariable("Phase", "SINEG01-RSYS:SET-VSUM-PHASE", "SINEG01-RSYS:SET-VSUM-PHASE")
phase.config.minValue =-180.0
phase.config.maxValue = 180.0
phase.config.precision = 3
phase.config.resolution = 0.1
phase.config.save()
phase.initialize()
#st = Stream("ICTstream", dispatcher)
#q = st.addScalar("Charge", "SINEG01-DICT215:B1_CHARGE", 1, 0)
#st.initialize()
@@ -27,6 +28,11 @@ phase.initialize()
q = Channel("SINEG01-DICT215:B1_CHARGE", type = 'd', alias='ICT-Q')
phase0 = phase.read()
print phase0
add_device(phase, True)
"""
try:
qb = create_averager(q, nb, 0.100)
r = lscan(phase, (qb), start, stop, step, latency=lat)
@@ -45,4 +51,5 @@ x = rf_phase
index_max = y.index(max(y))
phase_ref = x[index_max] - 80
set_return(phase_ref)
set_return(phase_ref)
"""