This commit is contained in:
voulot_d
2017-04-03 15:26:17 +02:00
parent 42714841e3
commit 2da9d35635
5 changed files with 20 additions and 16 deletions
+4 -4
View File
@@ -12,9 +12,9 @@ else:
step = args[2]
nb = int(args[3])
lat = args[4]
phase = ControlledVariable("Phase", "SINEG01-RSYS:SET-VSUM-PHASE", "SINEG01-RSYS:GET-VSUM-PHASE")
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.resolution = 0.5
@@ -38,8 +38,8 @@ finally:
#st.close()
#Setting the return value
y = charge
x = rf_phase
y = charge
x = rf_phase
index_max = y.index(max(y))
phase_ref = x[index_max] - 80
phase_offset = - phase_ref