This commit is contained in:
gobbo_a
2017-01-24 12:37:39 +01:00
parent c67c88130c
commit ac0b7e33ef
5 changed files with 688 additions and 12 deletions
+6 -8
View File
@@ -36,16 +36,14 @@ finally:
q.close()
#st.close()
# Here the user needs to pick a phase as reference phase (onset of charge emission)
phase_ref = 80.0
phase_offset = - phase_ref
caput("SINEG01-RSYS:CALC-VSUM-PHASE-OFFSET", phase_offset)
#Setting the return value
#set_return(50.0)
y = r.getReadable(0)
x = r.getPositions(0)
y = [v.mean for v in y]
index_max = y.index(max(y))
_ = x[index_max]
index_max = y.index(max(y))
phase_ref = x[index_max]
phase_offset = - phase_ref
caput("SINEG01-RSYS:CALC-VSUM-PHASE-OFFSET", phase_offset)
_ = phase_ref