Script execution
This commit is contained in:
@@ -28,8 +28,8 @@ phase.initialize()
|
||||
#camtool.startReceiver()
|
||||
#x = camtool.getValue("x_com")
|
||||
#dx = camtool.getValue("x_rms")
|
||||
x = Channel("SINEG01-RSYS:GET-VSUM-AMPLT-SIM", type = 'd', alias='Amplitude Readback')
|
||||
dx = Channel("SINEG01-RSYS:GET-KLY-POWER-SIM", type = 'd', alias='Power Readback')
|
||||
x = phase
|
||||
dx = (phase - 85)**2
|
||||
|
||||
|
||||
try:
|
||||
@@ -41,6 +41,6 @@ try:
|
||||
dE = [val.mean/1000.0/disp*energy0 for val in r.getReadable(1)]
|
||||
finally:
|
||||
phase.close()
|
||||
camtool.close()
|
||||
# camtool.close()
|
||||
|
||||
p = plot([E, dE],"data", rf_phase, title="Phase scan")[0]
|
||||
|
||||
Reference in New Issue
Block a user