Script execution
This commit is contained in:
36
script/phase_scan_dv.py
Normal file
36
script/phase_scan_dv.py
Normal file
@@ -0,0 +1,36 @@
|
||||
"""
|
||||
Parameters:
|
||||
prefix
|
||||
"""
|
||||
|
||||
prefix = "MINSB03-RSYS"
|
||||
start = -175.0
|
||||
stop = 180.0
|
||||
step = 5.0
|
||||
|
||||
|
||||
|
||||
rf_phase_setpoint = Channel(prefix + ":SET-VSUM-PHASE")
|
||||
rf_phase_readback = Channel(prefix + ":GET-VSUM-PHASE")
|
||||
rf_ampl_readback = Channel(prefix + ":GET-VSUM-AMPLT")
|
||||
|
||||
r = lscan(rf_phase_setpoint, [rf_phase_readback, rf_ampl_readback, sim], start, stop, step , latency=0.5)
|
||||
|
||||
plot(r.getReadable(2), xdata = r.getReadable(0), title = "data")
|
||||
|
||||
#fit(r.getReadable(1))
|
||||
|
||||
|
||||
set_return(r.print())
|
||||
|
||||
|
||||
"""
|
||||
r = lscan(rf_phase, [rf_phase_rb, rf_ampl_rb, sim], -179.0, 180, 10.0, latency=0.2)
|
||||
|
||||
plot(r.getReadable(2), xdata = r.getReadable(0), title = "data")
|
||||
|
||||
fit(r.getReadable(1))
|
||||
|
||||
|
||||
set_return(r.print())
|
||||
"""
|
||||
Reference in New Issue
Block a user