Startup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user