Script execution

This commit is contained in:
sfop
2016-05-27 15:29:45 +02:00
parent 8e07b7157f
commit 8c8e4b1fd2

View File

@@ -3,18 +3,19 @@ Parameters:
prefix
"""
prefix = "MINSB03-RSYS"
prefix = "MINSB03-RSYS" # SINEG01-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")
rf_phase_setpoint = ao1 # Channel(prefix + ":SET-VSUM-PHASE")
rf_phase_readback = ai1 # Channel(prefix + ":GET-VSUM-PHASE")
rf_ampl_readback = ai2 # Channel(prefix + ":GET-VSUM-AMPLT")
bpm_q = sim # SINEG01-DBPM340:Q1, SINEG01-DWCM170:Q_B1
r = lscan(rf_phase_setpoint, [rf_phase_readback, rf_ampl_readback, sim], start, stop, step , latency=0.5)
r = lscan(rf_phase_setpoint, [rf_phase_readback, rf_ampl_readback, bpm_x], start, stop, step , latency=0.5)
plot(r.getReadable(2), xdata = r.getReadable(0), title = "data")