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