[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/02: uhd: Updated uhd_fft example + app (
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/02: uhd: Updated uhd_fft example + app (moved to QT) |
Date: |
Tue, 23 Jun 2015 15:57:48 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit f23cbc6a3f52210c7a4728001f895cec98cd218c
Author: Martin Braun <address@hidden>
Date: Thu Jun 18 18:29:24 2015 -0700
uhd: Updated uhd_fft example + app (moved to QT)
---
gr-uhd/apps/uhd_fft | 800 +++++++-----
gr-uhd/apps/{uhd_fft => uhd_fft_wx} | 0
gr-uhd/examples/grc/uhd_fft.grc | 2308 +++++++++++++++++++++++------------
3 files changed, 2025 insertions(+), 1083 deletions(-)
diff --git a/gr-uhd/apps/uhd_fft b/gr-uhd/apps/uhd_fft
index 0e80de6..cbf30e5 100755
--- a/gr-uhd/apps/uhd_fft
+++ b/gr-uhd/apps/uhd_fft
@@ -1,6 +1,6 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
-# Copyright 2012 Free Software Foundation, Inc.
+# Copyright 2015 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
@@ -20,329 +20,551 @@
# Boston, MA 02110-1301, USA.
#
-from gnuradio import gr, gru
-from gnuradio import uhd
+# Original GRC header:
+##################################################
+# GNU Radio Python Flow Graph
+# Title: UHD FFT
+# Author: Example
+# Description: UHD FFT Waveform Plotter
+# Generated: Thu Jun 18 13:57:09 2015
+##################################################
+# Note this is a heavily modified version of a
+# the uhd_fft.grc example.
+
+if __name__ == '__main__':
+ import ctypes
+ import sys
+ if sys.platform.startswith('linux'):
+ try:
+ x11 = ctypes.cdll.LoadLibrary('libX11.so')
+ x11.XInitThreads()
+ except:
+ print "Warning: failed to XInitThreads()"
+
+from PyQt4 import Qt
+from PyQt4.QtCore import QObject, pyqtSlot
from gnuradio import eng_notation
+from gnuradio import gr
+from gnuradio import qtgui
+from gnuradio import uhd
from gnuradio.eng_option import eng_option
+from gnuradio.filter import firdes
+from gnuradio.qtgui import Range, RangeWidget
from optparse import OptionParser
-
-import sys
import numpy
-
-try:
- from gnuradio.wxgui import stdgui2, form, slider
- from gnuradio.wxgui import forms
- from gnuradio.wxgui import fftsink2, waterfallsink2, scopesink2
- import wx
-except ImportError:
- sys.stderr.write("Error importing GNU Radio's wxgui. Please make sure
gr-wxgui is installed.\n")
- sys.exit(1)
-
-class app_top_block(stdgui2.std_top_block):
- def __init__(self, frame, panel, vbox, argv):
- stdgui2.std_top_block.__init__(self, frame, panel, vbox, argv)
-
- self.frame = frame
- self.panel = panel
-
- parser = OptionParser(option_class=eng_option)
- parser.add_option("-a", "--args", type="string", default="",
- help="UHD device address args , [default=%default]")
- parser.add_option("", "--spec", type="string", default=None,
- help="Subdevice of UHD device where appropriate")
- parser.add_option("-A", "--antenna", type="string", default=None,
- help="select Rx Antenna where appropriate")
- parser.add_option("-s", "--samp-rate", type="eng_float", default=1e6,
- help="set sample rate (bandwidth)
[default=%default]")
- parser.add_option("-f", "--freq", type="eng_float", default=None,
- help="set frequency to FREQ", metavar="FREQ")
- parser.add_option("-g", "--gain", type="eng_float", default=None,
- help="set gain in dB (default is midpoint)")
- parser.add_option("-W", "--waterfall", action="store_true",
default=False,
- help="Enable waterfall display")
- parser.add_option("-S", "--oscilloscope", action="store_true",
default=False,
- help="Enable oscilloscope display")
- parser.add_option("", "--avg-alpha", type="eng_float", default=1e-1,
- help="Set fftsink averaging factor,
default=[%default]")
- parser.add_option ("", "--averaging", action="store_true",
default=False,
- help="Enable fftsink averaging, default=[%default]")
- parser.add_option("", "--ref-scale", type="eng_float", default=1.0,
- help="Set dBFS=0dB input value, default=[%default]")
- parser.add_option("", "--fft-size", type="int", default=1024,
- help="Set number of FFT bins [default=%default]")
- parser.add_option("", "--fft-rate", type="int", default=30,
- help="Set FFT update rate, [default=%default]")
- parser.add_option("", "--wire-format", type="string", default="sc16",
- help="Set wire format from USRP [default=%default]")
- parser.add_option("", "--stream-args", type="string", default="",
- help="Set additional stream args [default=%default]")
- parser.add_option("", "--show-async-msg", action="store_true",
default=False,
- help="Show asynchronous message notifications from
UHD [default=%default]")
- (options, args) = parser.parse_args()
- if len(args) != 0:
- parser.print_help()
- sys.exit(1)
- self.options = options
- self.show_debug_info = True
-
- self.u = uhd.usrp_source(device_addr=options.args,
- stream_args=uhd.stream_args(cpu_format='fc32',
- otw_format=options.wire_format,
args=options.stream_args))
-
- # Set the subdevice spec
- if(options.spec):
- self.u.set_subdev_spec(options.spec, 0)
-
- # Set the antenna
- if(options.antenna):
- self.u.set_antenna(options.antenna, 0)
-
- self.u.set_samp_rate(options.samp_rate)
- input_rate = self.u.get_samp_rate()
-
- if options.waterfall:
- self.scope = \
- waterfallsink2.waterfall_sink_c (panel, fft_size=1024,
- sample_rate=input_rate)
- self.frame.SetMinSize((800, 420))
- elif options.oscilloscope:
- self.scope = scopesink2.scope_sink_c(panel, sample_rate=input_rate)
- self.frame.SetMinSize((800, 600))
- else:
- self.scope = fftsink2.fft_sink_c (panel,
- fft_size=options.fft_size,
- sample_rate=input_rate,
- ref_scale=options.ref_scale,
- ref_level=20.0,
- y_divs = 12,
- average=options.averaging,
- avg_alpha=options.avg_alpha,
- fft_rate=options.fft_rate)
- def fftsink_callback(x, y):
- self.set_freq(x)
-
- self.scope.set_callback(fftsink_callback)
- self.frame.SetMinSize((800, 420))
-
- self.connect(self.u, self.scope)
-
- self._build_gui(vbox)
- self._setup_events()
-
-
- # set initial values
-
- if options.gain is None:
- # if no gain was specified, use the mid-point in dB
- g = self.u.get_gain_range()
- options.gain = float(g.start()+g.stop())/2
-
- if options.freq is None:
- # if no freq was specified, use the mid-point
- r = self.u.get_freq_range()
- options.freq = float(r.start()+r.stop())/2
-
- self.set_gain(options.gain)
-
- if self.show_debug_info:
- self.myform['samprate'].set_value(self.u.get_samp_rate())
- self.myform['rffreq'].set_value(0)
- self.myform['dspfreq'].set_value(0)
-
- if not(self.set_freq(options.freq)):
- self._set_status_msg("Failed to set initial frequency")
-
- # Direct asynchronous notifications to callback function
- if self.options.show_async_msg:
- self.async_msgq = gr.msg_queue(0)
- self.async_src = uhd.amsg_source("", self.async_msgq)
- self.async_rcv = gru.msgq_runner(self.async_msgq,
self.async_callback)
-
- def async_callback(self, msg):
- md = self.async_src.msg_to_async_metadata_t(msg)
- print "Channel: %i Time: %f Event: %i" % (md.channel,
md.time_spec.get_real_secs(), md.event_code)
-
- def _set_status_msg(self, msg):
- self.frame.GetStatusBar().SetStatusText(msg, 0)
-
- def _build_gui(self, vbox):
-
- def _form_set_freq(kv):
- return self.set_freq(kv['freq'])
-
- vbox.Add(self.scope.win, 10, wx.EXPAND)
-
- # add control area at the bottom
- self.myform = myform = form.form()
- hbox = wx.BoxSizer(wx.HORIZONTAL)
- hbox.Add((5,0), 0, 0)
- myform['freq'] = form.float_field(
- parent=self.panel, sizer=hbox, label="Center freq", weight=1,
- callback=myform.check_input_and_call(_form_set_freq,
- self._set_status_msg))
-
- hbox.Add((5,0), 0, 0)
- g = self.u.get_gain_range()
-
- # some configurations don't have gain control
- if g.stop() <= g.start():
- glow = 0.0
- ghigh = 1.0
-
+import sip
+import sys
+import threading
+import time
+
+from distutils.version import StrictVersion
+class uhd_fft(gr.top_block, Qt.QWidget):
+
+ def __init__(self,
+ antenna="", args="",
+ freq=2.45e9, gain=None, samp_rate=1e6,
+ fft_size=1024, fft_average='off', avg_alpha=None,
+ spec="", stream_args="", update_rate=.1, wire_format=""):
+ gr.top_block.__init__(self, "UHD FFT")
+ Qt.QWidget.__init__(self)
+ self.setWindowTitle("UHD FFT")
+ try:
+ self.setWindowIcon(Qt.QIcon.fromTheme('gnuradio-grc'))
+ except:
+ pass
+ self.top_scroll_layout = Qt.QVBoxLayout()
+ self.setLayout(self.top_scroll_layout)
+ self.top_scroll = Qt.QScrollArea()
+ self.top_scroll.setFrameStyle(Qt.QFrame.NoFrame)
+ self.top_scroll_layout.addWidget(self.top_scroll)
+ self.top_scroll.setWidgetResizable(True)
+ self.top_widget = Qt.QWidget()
+ self.top_scroll.setWidget(self.top_widget)
+ self.top_layout = Qt.QVBoxLayout(self.top_widget)
+ self.top_grid_layout = Qt.QGridLayout()
+ self.top_layout.addLayout(self.top_grid_layout)
+
+ self.settings = Qt.QSettings("GNU Radio", "uhd_fft")
+ self.restoreGeometry(self.settings.value("geometry").toByteArray())
+
+ ##################################################
+ # Parameters
+ ##################################################
+ self.antenna = antenna
+ self.args = args
+ self.fft_size = fft_size
+ self.freq = freq
+ self.gain = gain
+ self.samp_rate = samp_rate
+ self.spec = spec
+ self.stream_args = stream_args
+ self.update_rate = update_rate
+ self.wire_format = wire_format
+
+ ##################################################
+ # Variables
+ ##################################################
+ self.freq = freq
+ self.chan0_lo_locked = chan0_lo_locked = uhd.sensor_value("", False,
"")
+ self.usrp_device_info = usrp_device_info = "[No USRP Device Info
Found!]"
+ self.uhd_version_info = uhd_version_info = uhd.get_version_string()
+ self.lo_locked_probe = lo_locked_probe = chan0_lo_locked.to_bool()
+ self.ant = ant = antenna
+ self.fft_average = 1.0
+ if avg_alpha is not None:
+ if avg_alpha < 0.0 or avg_alpha > 1.0:
+ print "[UHD FFT] [ERROR] Alpha must be in [0.0, 1.0]!"
+ exit(1)
+ self.fft_average = avg_alpha
else:
- glow = g.start()
- ghigh = g.stop()
-
- myform['gain'] = form.slider_field(parent=self.panel,
- sizer=hbox, label="Gain",
- weight=3,
- min=int(glow), max=int(ghigh),
- callback=self.set_gain)
-
+ fft_average_values = {'off': 1.0, 'low': 0.2, 'medium': 0.1,
'high': 0.05}
+ if fft_average in fft_average_values.keys():
+ self.fft_average = fft_average_values[fft_average]
+
+ ##################################################
+ # Blocks
+ ##################################################
+ # Set up USRP source first, so we can poll info:
+ self.u = uhd.usrp_source(
+ args,
+ uhd.stream_args(
+ cpu_format="fc32",
+ otw_format=wire_format,
+ channels=range(1),
+ args=stream_args,
+ ),
+ )
+ if len(spec):
+ self.u.set_subdev_spec(spec)
+ self.u.set_samp_rate(samp_rate)
+ # The actual rate:
+ self.samp_rate = samp_rate = self.u.get_samp_rate()
+ self.u.set_center_freq(float(freq), 0)
+ self.freq = self.u.get_center_freq()
+ self.gain_range = self.u.get_gain_range()
+ if self.gain is None:
+ self.gain = float(self.gain_range.start() +
self.gain_range.stop()) * 0.5
+ self.u.set_gain(self.gain, 0)
+ self.gain = self.u.get_gain(0)
+ self._ant_options = self.u.get_antennas()
+ if ant is not None and len(ant):
+ if not ant in self._ant_options:
+ print "[UHD FFT] [ERROR] {} is not a valid antenna name for
this USRP device!".format(ant)
+ exit(1)
+ self.u.set_antenna(ant, 0)
+ self.ant = ant = self.u.get_antenna()
+ self.u.set_bandwidth(samp_rate, 0)
+ usrp_info = {}
try:
- mboard_id = self.u.get_usrp_info()["mboard_id"]
- mboard_serial = self.u.get_usrp_info()["mboard_serial"]
+ usrp_info = self.u.get_usrp_info()
+ mboard_id = usrp_info["mboard_id"]
+ mboard_serial = usrp_info["mboard_serial"]
if mboard_serial == "":
mboard_serial = "no serial"
- dboard_subdev_name = self.u.get_usrp_info()["rx_subdev_name"]
- dboard_serial = self.u.get_usrp_info()["rx_serial"]
+ dboard_subdev_name = usrp_info["rx_subdev_name"]
+ dboard_serial = usrp_info["rx_serial"]
if dboard_serial == "":
dboard_serial = "no serial"
subdev = self.u.get_subdev_spec()
antenna = self.u.get_antenna()
-
- if "B200" in mboard_id or "B210" in mboard_id:
- usrp_config_val = "%s (%s), %s (%s, %s)" % (mboard_id,
mboard_serial, dboard_subdev_name, subdev, antenna)
+ if usrp_info['mboard_id'] in ("B200", "B210", "E310"):
+ self.usrp_device_info = usrp_device_info = "%s (%s), %s (%s,
%s)" % (
+ mboard_id, mboard_serial, dboard_subdev_name, subdev,
antenna
+ )
else:
- usrp_config_val = "%s (%s), %s (%s, %s, %s)" % (mboard_id,
mboard_serial, dboard_subdev_name, dboard_serial, subdev, antenna)
+ self.usrp_device_info = usrp_device_info = "%s (%s), %s (%s,
%s, %s)" % (
+ mboard_id, mboard_serial, dboard_subdev_name,
dboard_serial, subdev, antenna
+ )
except:
- usrp_config_val = "Not implemented in this version."
-
- uhd_box = forms.static_box_sizer(parent=self.panel,
- label="UHD (%s)" %
(uhd.get_version_string()),
- orient=wx.HORIZONTAL)
- usrp_config_form = forms.static_text(
- parent=self.panel,
- sizer=uhd_box,
- value=usrp_config_val,
- label="USRP",
- converter=forms.str_converter(),
+ pass
+ self.has_lo_sensor = 'lo_locked' in self.u.get_sensor_names()
+
+ ### Now set up the GUI widgets: #####################################
+ # Sampling rate:
+ self._samp_rate__tool_bar = Qt.QToolBar(self)
+ self._samp_rate__tool_bar.addWidget(Qt.QLabel("Sampling Rate"+": "))
+ self._samp_rate__line_edit =
Qt.QLineEdit(eng_notation.num_to_str(self.samp_rate))
+ self._samp_rate__tool_bar.addWidget(self._samp_rate__line_edit)
+ self._samp_rate__line_edit.returnPressed.connect(
+ lambda:
self.set_samp_rate(eng_notation.str_to_num(str(self._samp_rate__line_edit.text().toAscii()))))
+ self.top_grid_layout.addWidget(self._samp_rate__tool_bar, 3,2,1,2)
+ # Gain:
+ self._gain__range = Range(self.gain_range.start(),
self.gain_range.stop(), self.gain_range.step(), self.gain, 200)
+ self._gain__win = RangeWidget(self._gain__range, self.set_gain, "RX
Gain", "counter_slider", float)
+ self.top_grid_layout.addWidget(self._gain__win, 2,0,1,4)
+ # Center frequency:
+ self._freq_tool_bar = Qt.QToolBar(self)
+ self._freq_tool_bar.addWidget(Qt.QLabel("RX Tune Frequency"+": "))
+ self._freq_line_edit = Qt.QLineEdit(eng_notation.num_to_str(self.freq))
+ self._freq_tool_bar.addWidget(self._freq_line_edit)
+ self._freq_line_edit.returnPressed.connect(
+ lambda:
self.set_freq(eng_notation.str_to_num(str(self._freq_line_edit.text().toAscii()))))
+ self.top_grid_layout.addWidget(self._freq_tool_bar, 3,0,1,2)
+ # Antenna Selection:
+ self._ant_labels = self._ant_options
+ self._ant_tool_bar = Qt.QToolBar(self)
+ self._ant_tool_bar.addWidget(Qt.QLabel("Antenna"+": "))
+ self._ant_combo_box = Qt.QComboBox()
+ self._ant_tool_bar.addWidget(self._ant_combo_box)
+ for label in self._ant_labels: self._ant_combo_box.addItem(label)
+ self._ant_callback = lambda i:
Qt.QMetaObject.invokeMethod(self._ant_combo_box, "setCurrentIndex",
Qt.Q_ARG("int", self._ant_options.index(i)))
+ self._ant_callback(self.ant)
+ self._ant_combo_box.currentIndexChanged.connect(lambda i:
self.set_ant(self._ant_options[i]))
+ self.top_grid_layout.addWidget(self._ant_tool_bar, 4,2,1,2)
+ # Device + UHD info:
+ self._usrp_device_info_tool_bar = Qt.QToolBar(self)
+ self._usrp_device_info_formatter = lambda x: x
+ self._usrp_device_info_tool_bar.addWidget(Qt.QLabel("Device
Information"+": "))
+ self._usrp_device_info_label =
Qt.QLabel(str(self._usrp_device_info_formatter(self.usrp_device_info)))
+ self._usrp_device_info_tool_bar.addWidget(self._usrp_device_info_label)
+ self.top_grid_layout.addWidget(self._usrp_device_info_tool_bar,
1,2,1,2)
+ self._uhd_version_info_tool_bar = Qt.QToolBar(self)
+ self._uhd_version_info_formatter = lambda x: x
+ self._uhd_version_info_tool_bar.addWidget(Qt.QLabel("UHD Version"+":
"))
+ self._uhd_version_info_label =
Qt.QLabel(str(self._uhd_version_info_formatter(self.uhd_version_info)))
+ self._uhd_version_info_tool_bar.addWidget(self._uhd_version_info_label)
+ self.top_grid_layout.addWidget(self._uhd_version_info_tool_bar,
1,0,1,2)
+ ### Plot GUIs #######################################################
+ self.display = Qt.QTabWidget()
+ self.display_widget_0 = Qt.QWidget()
+ self.display_layout_0 = Qt.QBoxLayout(Qt.QBoxLayout.TopToBottom,
self.display_widget_0)
+ self.display_grid_layout_0 = Qt.QGridLayout()
+ self.display_layout_0.addLayout(self.display_grid_layout_0)
+ self.display.addTab(self.display_widget_0, "Spectrum")
+ self.display_widget_1 = Qt.QWidget()
+ self.display_layout_1 = Qt.QBoxLayout(Qt.QBoxLayout.TopToBottom,
self.display_widget_1)
+ self.display_grid_layout_1 = Qt.QGridLayout()
+ self.display_layout_1.addLayout(self.display_grid_layout_1)
+ self.display.addTab(self.display_widget_1, "Waterfall")
+ self.display_widget_2 = Qt.QWidget()
+ self.display_layout_2 = Qt.QBoxLayout(Qt.QBoxLayout.TopToBottom,
self.display_widget_2)
+ self.display_grid_layout_2 = Qt.QGridLayout()
+ self.display_layout_2.addLayout(self.display_grid_layout_2)
+ self.display.addTab(self.display_widget_2, "Scope")
+ self.top_grid_layout.addWidget(self.display, 0,0,1,4)
+ self.qtgui_waterfall_sink_x_0 = qtgui.waterfall_sink_c(
+ fft_size, #size
+ firdes.WIN_BLACKMAN_hARRIS, #wintype
+ freq, #fc
+ samp_rate, #bw
+ "Scope", #name
+ 1 #number of inputs
)
- vbox.Add(uhd_box, 0, wx.EXPAND)
- vbox.AddSpacer(5)
-
- hbox.Add((5,0), 0, 0)
- vbox.Add(hbox, 0, wx.EXPAND)
-
- self._build_subpanel(vbox)
-
- def _build_subpanel(self, vbox_arg):
- # build a secondary information panel (sometimes hidden)
+ self.qtgui_waterfall_sink_x_0.set_update_time(update_rate)
+ self.qtgui_waterfall_sink_x_0.enable_grid(False)
+ if not True:
+ self.qtgui_waterfall_sink_x_0.disable_legend()
+ if complex == type(float()):
+ self.qtgui_waterfall_sink_x_0.set_plot_pos_half(not True)
+ labels = ["", "", "", "", "", "", "", "", "", ""]
+ colors = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
+ alphas = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
+ for i in xrange(1):
+ if len(labels[i]) == 0:
+ self.qtgui_waterfall_sink_x_0.set_line_label(i, "Data
{0}".format(i))
+ else:
+ self.qtgui_waterfall_sink_x_0.set_line_label(i, labels[i])
+ self.qtgui_waterfall_sink_x_0.set_color_map(i, colors[i])
+ self.qtgui_waterfall_sink_x_0.set_line_alpha(i, alphas[i])
+ self.qtgui_waterfall_sink_x_0.set_intensity_range(-140, 10)
+ self._qtgui_waterfall_sink_x_0_win =
sip.wrapinstance(self.qtgui_waterfall_sink_x_0.pyqwidget(), Qt.QWidget)
+
self.display_grid_layout_1.addWidget(self._qtgui_waterfall_sink_x_0_win,
0,0,1,4)
+ self.qtgui_time_sink_x_0 = qtgui.time_sink_c(
+ 1024, #size
+ samp_rate, #samp_rate
+ "Scope", #name
+ 1 #number of inputs
+ )
+ self.qtgui_time_sink_x_0.set_update_time(update_rate)
+ self.qtgui_time_sink_x_0.set_y_axis(-1, 1)
+ self.qtgui_time_sink_x_0.set_y_label("Amplitude", "")
+ self.qtgui_time_sink_x_0.enable_tags(-1, True)
+ self.qtgui_time_sink_x_0.set_trigger_mode(qtgui.TRIG_MODE_FREE,
qtgui.TRIG_SLOPE_POS, 0.0, 0, 0, "")
+ self.qtgui_time_sink_x_0.enable_autoscale(True)
+ self.qtgui_time_sink_x_0.enable_grid(False)
+ self.qtgui_time_sink_x_0.enable_control_panel(True)
+ if not True:
+ self.qtgui_time_sink_x_0.disable_legend()
+ labels = ["", "", "", "", "", "", "", "", "", ""]
+ widths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
+ colors = ["blue", "red", "green", "black", "cyan",
+ "magenta", "yellow", "dark red", "dark green", "blue"]
+ styles = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
+ markers = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
+ alphas = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
+ for i in xrange(2*1):
+ if len(labels[i]) == 0:
+ if(i % 2 == 0):
+ self.qtgui_time_sink_x_0.set_line_label(i, "Re{{Data
{0}}}".format(i/2))
+ else:
+ self.qtgui_time_sink_x_0.set_line_label(i, "Im{{Data
{0}}}".format(i/2))
+ else:
+ self.qtgui_time_sink_x_0.set_line_label(i, labels[i])
+ self.qtgui_time_sink_x_0.set_line_width(i, widths[i])
+ self.qtgui_time_sink_x_0.set_line_color(i, colors[i])
+ self.qtgui_time_sink_x_0.set_line_style(i, styles[i])
+ self.qtgui_time_sink_x_0.set_line_marker(i, markers[i])
+ self.qtgui_time_sink_x_0.set_line_alpha(i, alphas[i])
+ self._qtgui_time_sink_x_0_win =
sip.wrapinstance(self.qtgui_time_sink_x_0.pyqwidget(), Qt.QWidget)
+ self.display_grid_layout_2.addWidget(self._qtgui_time_sink_x_0_win,
0,0,1,4)
+ self.qtgui_freq_sink_x_0 = qtgui.freq_sink_c(
+ fft_size, #size
+ firdes.WIN_BLACKMAN_hARRIS, #wintype
+ freq, #fc
+ samp_rate, #bw
+ "Spectrum", #name
+ 1 #number of inputs
+ )
+ self.qtgui_freq_sink_x_0.set_update_time(update_rate)
+ self.qtgui_freq_sink_x_0.set_y_axis(-140, 10)
+ self.qtgui_freq_sink_x_0.set_trigger_mode(qtgui.TRIG_MODE_FREE, 0.0,
0, "")
+ self.qtgui_freq_sink_x_0.enable_autoscale(True)
+ self.qtgui_freq_sink_x_0.enable_grid(True)
+ self.qtgui_freq_sink_x_0.set_fft_average(self.fft_average)
+ self.qtgui_freq_sink_x_0.enable_control_panel(True)
+ if not True:
+ self.qtgui_freq_sink_x_0.disable_legend()
+ if complex == type(float()):
+ self.qtgui_freq_sink_x_0.set_plot_pos_half(not True)
+ labels = ["", "", "", "", "", "", "", "", "", ""]
+ widths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
+ colors = ["blue", "red", "green", "black", "cyan", "magenta",
"yellow", "dark red", "dark green", "dark blue"]
+ alphas = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
+ for i in xrange(1):
+ if len(labels[i]) == 0:
+ self.qtgui_freq_sink_x_0.set_line_label(i, "Data
{0}".format(i))
+ else:
+ self.qtgui_freq_sink_x_0.set_line_label(i, labels[i])
+ self.qtgui_freq_sink_x_0.set_line_width(i, widths[i])
+ self.qtgui_freq_sink_x_0.set_line_color(i, colors[i])
+ self.qtgui_freq_sink_x_0.set_line_alpha(i, alphas[i])
+ self._qtgui_freq_sink_x_0_win =
sip.wrapinstance(self.qtgui_freq_sink_x_0.pyqwidget(), Qt.QWidget)
+ self.display_grid_layout_0.addWidget(self._qtgui_freq_sink_x_0_win,
0,0,1,4)
+ def _freeze_scaling(widget, sleep_time):
+ time.sleep(sleep_time)
+ widget.enable_autoscale(False)
+ _freeze_fft_thread = threading.Thread(target=lambda:
_freeze_scaling(self.qtgui_freq_sink_x_0, .5/self.fft_average))
+ _freeze_fft_thread.daemon = True
+ _freeze_fft_thread.start()
+ _freeze_scope_thread = threading.Thread(target=lambda:
_freeze_scaling(self.qtgui_time_sink_x_0, 2.0))
+ _freeze_scope_thread.daemon = True
+ _freeze_scope_thread.start()
+
+ self._lo_locked_probe_tool_bar = Qt.QToolBar(self)
+ self._lo_locked_probe_formatter = lambda x: {True: 'Yes', False:
'No'}[x]
+ if self.has_lo_sensor:
+ self._lo_locked_probe_tool_bar.addWidget(Qt.QLabel("LO locked"+":
"))
+ self._lo_locked_probe_label =
Qt.QLabel(str(self._lo_locked_probe_formatter(self.lo_locked_probe)))
+ else:
+ self._lo_locked_probe_tool_bar.addWidget(Qt.QLabel("No LO lock
sensor available."))
+ self._lo_locked_probe_label = Qt.QLabel("")
+ self._lo_locked_probe_tool_bar.addWidget(self._lo_locked_probe_label)
+ self.top_grid_layout.addWidget(self._lo_locked_probe_tool_bar, 4,0,1,2)
+
+ def _current_freq_probe():
+ while True:
+ val = self.u.get_center_freq(0)
+ try:
+ if val != self.freq:
+ pass
+ # Updating frequency currently not supported
+ self.set_freq(val, False)
+ except AttributeError:
+ pass
+ time.sleep(1.0 / (10))
+ _current_freq_thread = threading.Thread(target=_current_freq_probe)
+ _current_freq_thread.daemon = True
+ _current_freq_thread.start()
+ def _chan0_lo_locked_probe():
+ while self.has_lo_sensor:
+ val = self.u.get_sensor('lo_locked')
+ try:
+ self.set_chan0_lo_locked(val)
+ except AttributeError:
+ pass
+ time.sleep(1.0 / (10))
+ _chan0_lo_locked_thread =
threading.Thread(target=_chan0_lo_locked_probe)
+ _chan0_lo_locked_thread.daemon = True
+ _chan0_lo_locked_thread.start()
+
+ ##################################################
+ # Connections
+ ##################################################
+ self.msg_connect((self.qtgui_freq_sink_x_0, 'freq'),
(self.qtgui_freq_sink_x_0, 'freq'))
+ self.msg_connect((self.qtgui_freq_sink_x_0, 'freq'), (self.u,
'command'))
+ self.connect((self.u, 0), (self.qtgui_freq_sink_x_0, 0))
+ self.connect((self.u, 0), (self.qtgui_time_sink_x_0, 0))
+ self.connect((self.u, 0), (self.qtgui_waterfall_sink_x_0, 0))
+
+ def closeEvent(self, event):
+ self.settings = Qt.QSettings("GNU Radio", "uhd_fft")
+ self.settings.setValue("geometry", self.saveGeometry())
+ event.accept()
+
+ def get_antenna(self):
+ return self.antenna
+
+ def set_antenna(self, antenna):
+ self.antenna = antenna
+ self.set_ant(self.antenna)
+
+ def get_args(self):
+ return self.args
+
+ def set_args(self, args):
+ self.args = args
+
+ def get_fft_size(self):
+ return self.fft_size
+
+ def set_fft_size(self, fft_size):
+ self.fft_size = fft_size
+
+ def get_freq(self):
+ return self.freq
+
+ def set_freq(self, freq, do_tune=True):
+ if freq == self.freq: return
+ self.freq = freq
+ Qt.QMetaObject.invokeMethod(self._freq_line_edit, "setText",
Qt.Q_ARG("QString", eng_notation.num_to_str(self.freq)))
+ if do_tune:
+ self.u.set_center_freq(float(self.freq), 0)
+ self.qtgui_freq_sink_x_0.set_frequency_range(self.freq,
self.samp_rate)
+ self.qtgui_waterfall_sink_x_0.set_frequency_range(self.freq,
self.samp_rate)
+
+ def get_gain(self):
+ return self.gain
- # FIXME figure out how to have this be a subpanel that is always
- # created, but has its visibility controlled by foo.Show(True/False)
+ def set_gain(self, gain):
+ self.gain = gain
+ self.u.set_gain(self.gain, 0)
- def _form_set_samp_rate(kv):
- return self.set_samp_rate(kv['samprate'])
+ def get_samp_rate(self):
+ return self.samp_rate
- if not(self.show_debug_info):
- return
+ def get_spec(self):
+ return self.spec
- panel = self.panel
- vbox = vbox_arg
- myform = self.myform
+ def set_spec(self, spec):
+ self.spec = spec
- hbox = wx.BoxSizer(wx.HORIZONTAL)
+ def get_stream_args(self):
+ return self.stream_args
- hbox.Add((5,0), 0)
- myform['samprate'] = form.float_field(
- parent=panel, sizer=hbox, label="Sample Rate",
- callback=myform.check_input_and_call(_form_set_samp_rate,
- self._set_status_msg))
+ def set_stream_args(self, stream_args):
+ self.stream_args = stream_args
- hbox.Add((5,0), 1)
- myform['rffreq'] = form.static_float_field(
- parent=panel, sizer=hbox, label="RF Freq.")
+ def get_update_rate(self):
+ return self.update_rate
- hbox.Add((5,0), 1)
- myform['dspfreq'] = form.static_float_field(
- parent=panel, sizer=hbox, label="DSP Freq.")
+ def set_update_rate(self, update_rate):
+ self.update_rate = update_rate
+ self.qtgui_freq_sink_x_0.set_update_time(self.update_rate)
+ self.qtgui_time_sink_x_0.set_update_time(self.update_rate)
+ self.qtgui_waterfall_sink_x_0.set_update_time(self.update_rate)
- vbox.AddSpacer(5)
+ def get_wire_format(self):
+ return self.wire_format
- vbox.Add(hbox, 0, wx.EXPAND)
- vbox.AddSpacer(5)
+ def set_wire_format(self, wire_format):
+ self.wire_format = wire_format
- def set_freq(self, target_freq):
- """
- Set the center frequency we're interested in.
+ def get_chan0_lo_locked(self):
+ return self.chan0_lo_locked
- @param target_freq: frequency in Hz
- @rypte: bool
- """
- r = self.u.set_center_freq(target_freq, 0)
+ def set_chan0_lo_locked(self, chan0_lo_locked):
+ if not self.has_lo_sensor: return
+ self.chan0_lo_locked = chan0_lo_locked
+
self.set_lo_locked_probe(self._lo_locked_probe_formatter(self.chan0_lo_locked.to_bool()))
- if r:
- self.myform['freq'].set_value(self.u.get_center_freq())
- self.myform['rffreq'].set_value(r.actual_rf_freq)
- self.myform['dspfreq'].set_value(r.actual_dsp_freq)
+ def get_usrp_device_info(self):
+ return self.usrp_device_info
- if not self.options.oscilloscope:
- self.scope.set_baseband_freq(target_freq)
- return True
+ def set_usrp_device_info(self, usrp_device_info):
+ self.usrp_device_info = usrp_device_info
+ Qt.QMetaObject.invokeMethod(self._usrp_device_info_label, "setText",
Qt.Q_ARG("QString", repr(self.usrp_device_info)))
- return False
+ def get_uhd_version_info(self):
+ return self.uhd_version_info
- def set_gain(self, gain):
- if self.myform.has_key('gain'):
- self.myform['gain'].set_value(gain) # update displayed value
- self.u.set_gain(gain, 0)
+ def set_uhd_version_info(self, uhd_version_info):
+ self.uhd_version_info = uhd_version_info
+ Qt.QMetaObject.invokeMethod(self._uhd_version_info_label, "setText",
Qt.Q_ARG("QString", str(self.uhd_version_info)))
def set_samp_rate(self, samp_rate):
- ok = self.u.set_samp_rate(samp_rate)
- input_rate = self.u.get_samp_rate()
- self.scope.set_sample_rate(input_rate)
- if self.show_debug_info: # update displayed values
- self.myform['samprate'].set_value(self.u.get_samp_rate())
-
- # uhd set_samp_rate never fails; always falls back to closest
requested.
- return True
-
- def _setup_events(self):
- if not self.options.waterfall and not self.options.oscilloscope:
- self.scope.win.Bind(wx.EVT_LEFT_DCLICK, self.evt_left_dclick)
-
- def evt_left_dclick(self, event):
- (ux, uy) = self.scope.win.GetXY(event)
- if event.CmdDown():
- # Re-center on maximum power
- points = self.scope.win._points
- if self.scope.win.peak_hold:
- if self.scope.win.peak_vals is not None:
- ind = numpy.argmax(self.scope.win.peak_vals)
- else:
- ind = int(points.shape()[0]/2)
- else:
- ind = numpy.argmax(points[:,1])
+ print "[UHD FFT] Setting sampling rate to: {} MHz".format(samp_rate /
1e6)
+ self.samp_rate = samp_rate
+ Qt.QMetaObject.invokeMethod(self._samp_rate__line_edit, "setText",
Qt.Q_ARG("QString", eng_notation.num_to_str(self.samp_rate)))
+ self.qtgui_freq_sink_x_0.set_frequency_range(self.freq, self.samp_rate)
+ self.qtgui_time_sink_x_0.set_samp_rate(self.samp_rate)
+ self.qtgui_waterfall_sink_x_0.set_frequency_range(self.freq,
self.samp_rate)
+ self.u.set_samp_rate(self.samp_rate)
+ self.u.set_bandwidth(self.samp_rate, 0)
- (freq, pwr) = points[ind]
- target_freq = freq/self.scope.win._scale_factor
- print ind, freq, pwr
- self.set_freq(target_freq)
- else:
- # Re-center on clicked frequency
- target_freq = ux/self.scope.win._scale_factor
- self.set_freq(target_freq)
+ def get_lo_locked_probe(self):
+ return self.lo_locked_probe
+
+ def set_lo_locked_probe(self, lo_locked_probe):
+ self.lo_locked_probe = lo_locked_probe
+ Qt.QMetaObject.invokeMethod(self._lo_locked_probe_label, "setText",
Qt.Q_ARG("QString", str(self.lo_locked_probe)))
+ def get_ant(self):
+ return self.ant
-def main ():
- try:
- app = stdgui2.stdapp(app_top_block, "UHD FFT", nstatus=1)
- app.MainLoop()
+ def set_ant(self, ant):
+ self.ant = ant
+ self._ant_callback(self.ant)
+ self.u.set_antenna(self.ant, 0)
- except RuntimeError, e:
- print e
- sys.exit(1)
if __name__ == '__main__':
- main ()
+ parser = OptionParser(option_class=eng_option, usage="%prog: [options]")
+ parser.add_option("-a", "--args", dest="args", type="string", default="",
+ help="Set UHD device address args [default=%default]")
+ parser.add_option("-f", "--freq", dest="freq", type="eng_float",
default=eng_notation.num_to_str(100e6),
+ help="Set Rx frequency [default=%default]")
+ parser.add_option("-g", "--gain", dest="gain", type="eng_float",
default=None,
+ help="Set Set gain in dB (default is midpoint)")
+ parser.add_option("-s", "--samp-rate", dest="samp_rate", type="eng_float",
default=eng_notation.num_to_str(1e6),
+ help="Set Sample Rate [default=%default]")
+ parser.add_option("-A", "--antenna", dest="antenna", type="string",
default=None,
+ help="Select Rx Antenna (if appropriate)")
+ parser.add_option("--spec", dest="spec", type="string", default="",
+ help="Select USRP subdevice (e.g. A:A)")
+ parser.add_option("--wire-format", dest="wire_format", type="string",
default="",
+ help="Set Wire format [default=%default]")
+ parser.add_option("--stream-args", dest="stream_args", type="string",
default="",
+ help="Set Set additional stream args [default=%default]")
+ parser.add_option("--fft-size", dest="fft_size", type="intx", default=1024,
+ help="Set Set number of FFT bins [default=%default]")
+ parser.add_option("--fft-average", type="choice", default='medium',
choices=('off', 'low', 'medium', 'high'),
+ help="Set FFT averaging [default=%default]")
+ parser.add_option("--avg-alpha", type="float", default=None,
+ help="Specify FFT average alpha (overrides --fft-average)")
+ parser.add_option("--update-rate", dest="update_rate", type="eng_float",
default=eng_notation.num_to_str(.1),
+ help="Set Set GUI widget update rate [default=%default]")
+ (options, args) = parser.parse_args()
+ if(StrictVersion(Qt.qVersion()) >= StrictVersion("4.5.0")):
+
Qt.QApplication.setGraphicsSystem(gr.prefs().get_string('qtgui','style','raster'))
+ qapp = Qt.QApplication(sys.argv)
+ tb = uhd_fft(
+ args=options.args,
+ freq=options.freq,
+ gain=options.gain,
+ samp_rate=options.samp_rate,
+ antenna=options.antenna,
+ spec=options.spec,
+ wire_format=options.wire_format,
+ stream_args=options.stream_args,
+ fft_size=options.fft_size,
+ fft_average=options.fft_average,
+ update_rate=options.update_rate,
+ )
+ tb.start()
+ tb.show()
+ def quitting():
+ tb.stop()
+ tb.wait()
+ qapp.connect(qapp, Qt.SIGNAL("aboutToQuit()"), quitting)
+ qapp.exec_()
+ tb = None #to clean up Qt widgets
diff --git a/gr-uhd/apps/uhd_fft b/gr-uhd/apps/uhd_fft_wx
similarity index 100%
copy from gr-uhd/apps/uhd_fft
copy to gr-uhd/apps/uhd_fft_wx
diff --git a/gr-uhd/examples/grc/uhd_fft.grc b/gr-uhd/examples/grc/uhd_fft.grc
index 13271ca..6c8fb94 100644
--- a/gr-uhd/examples/grc/uhd_fft.grc
+++ b/gr-uhd/examples/grc/uhd_fft.grc
@@ -1,47 +1,48 @@
-<?xml version='1.0' encoding='ASCII'?>
+<?xml version='1.0' encoding='utf-8'?>
+<?grc format='1' created='3.7.8'?>
<flow_graph>
<timestamp>Sat Jul 12 16:12:28 2014</timestamp>
<block>
<key>options</key>
<param>
- <key>id</key>
- <value>uhd_fft</value>
+ <key>author</key>
+ <value>Example</value>
</param>
<param>
- <key>_enabled</key>
- <value>True</value>
+ <key>alias</key>
+ <value></value>
</param>
<param>
- <key>title</key>
- <value>UHD FFT</value>
+ <key>category</key>
+ <value>Custom</value>
</param>
<param>
- <key>author</key>
- <value>Example</value>
+ <key>comment</key>
+ <value></value>
</param>
<param>
<key>description</key>
<value>UHD FFT Waveform Plotter</value>
</param>
<param>
- <key>window_size</key>
- <value>1280, 1024</value>
+ <key>_enabled</key>
+ <value>True</value>
</param>
<param>
- <key>generate_options</key>
- <value>qt_gui</value>
+ <key>_coordinate</key>
+ <value>(-1, -3)</value>
</param>
<param>
- <key>category</key>
- <value>Custom</value>
+ <key>_rotation</key>
+ <value>0</value>
</param>
<param>
- <key>run_options</key>
- <value>prompt</value>
+ <key>generate_options</key>
+ <value>qt_gui</value>
</param>
<param>
- <key>run</key>
- <value>True</value>
+ <key>id</key>
+ <value>uhd_fft</value>
</param>
<param>
<key>max_nouts</key>
@@ -52,1320 +53,1868 @@
<value></value>
</param>
<param>
- <key>alias</key>
- <value></value>
+ <key>run_options</key>
+ <value>prompt</value>
</param>
<param>
- <key>_coordinate</key>
- <value>(-1, -3)</value>
+ <key>run</key>
+ <value>True</value>
</param>
<param>
- <key>_rotation</key>
- <value>0</value>
+ <key>thread_safe_setters</key>
+ <value></value>
</param>
- </block>
- <block>
- <key>parameter</key>
<param>
- <key>id</key>
- <value>param_gain</value>
+ <key>title</key>
+ <value>UHD FFT</value>
</param>
<param>
- <key>_enabled</key>
- <value>True</value>
+ <key>window_size</key>
+ <value>1280, 1024</value>
</param>
+ </block>
+ <block>
+ <key>variable_qtgui_chooser</key>
<param>
- <key>label</key>
- <value>Default Gain</value>
+ <key>comment</key>
+ <value></value>
</param>
<param>
<key>value</key>
- <value>0</value>
- </param>
- <param>
- <key>type</key>
- <value>eng_float</value>
+ <value>antenna</value>
</param>
<param>
- <key>short_id</key>
- <value>g</value>
+ <key>_enabled</key>
+ <value>True</value>
</param>
<param>
- <key>alias</key>
- <value></value>
+ <key>_coordinate</key>
+ <value>(664, 435)</value>
</param>
<param>
- <key>_coordinate</key>
- <value>(642, 0)</value>
+ <key>gui_hint</key>
+ <value>4,2,1,2</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
- </block>
- <block>
- <key>parameter</key>
<param>
<key>id</key>
- <value>param_samp_rate</value>
+ <value>ant</value>
</param>
<param>
- <key>_enabled</key>
- <value>True</value>
+ <key>label0</key>
+ <value>RX2</value>
</param>
<param>
- <key>label</key>
- <value>Sample Rate</value>
+ <key>label1</key>
+ <value>TX/RX</value>
</param>
<param>
- <key>value</key>
- <value>1e6</value>
+ <key>label2</key>
+ <value>J1</value>
</param>
<param>
- <key>type</key>
- <value>eng_float</value>
+ <key>label3</key>
+ <value>J2</value>
</param>
<param>
- <key>short_id</key>
- <value>s</value>
+ <key>label4</key>
+ <value></value>
</param>
<param>
- <key>alias</key>
- <value></value>
+ <key>label</key>
+ <value>Antenna</value>
</param>
<param>
- <key>_coordinate</key>
- <value>(328, 0)</value>
+ <key>labels</key>
+ <value>[]</value>
</param>
<param>
- <key>_rotation</key>
- <value>0</value>
+ <key>num_opts</key>
+ <value>4</value>
</param>
- </block>
- <block>
- <key>parameter</key>
<param>
- <key>id</key>
- <value>param_freq</value>
+ <key>option0</key>
+ <value>RX2</value>
</param>
<param>
- <key>_enabled</key>
- <value>True</value>
+ <key>option1</key>
+ <value>TX/RX</value>
</param>
<param>
- <key>label</key>
- <value>Default Frequency</value>
+ <key>option2</key>
+ <value>J1</value>
</param>
<param>
- <key>value</key>
- <value>2.45e9</value>
+ <key>option3</key>
+ <value>J2</value>
</param>
<param>
- <key>type</key>
- <value>eng_float</value>
+ <key>option4</key>
+ <value>4</value>
</param>
<param>
- <key>short_id</key>
- <value>f</value>
+ <key>options</key>
+ <value>[0, 1, 2]</value>
</param>
<param>
- <key>alias</key>
- <value></value>
+ <key>orient</key>
+ <value>Qt.QVBoxLayout</value>
</param>
<param>
- <key>_coordinate</key>
- <value>(478, 0)</value>
+ <key>type</key>
+ <value>string</value>
</param>
<param>
- <key>_rotation</key>
- <value>0</value>
+ <key>widget</key>
+ <value>combo_box</value>
</param>
</block>
<block>
- <key>import</key>
+ <key>variable_function_probe</key>
<param>
- <key>id</key>
- <value>import_0</value>
+ <key>block_id</key>
+ <value>uhd_usrp_source_0</value>
+ </param>
+ <param>
+ <key>comment</key>
+ <value></value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
- <key>import</key>
- <value>import numpy</value>
+ <key>function_args</key>
+ <value>"'lo_locked'"</value>
</param>
<param>
- <key>alias</key>
- <value></value>
+ <key>function_name</key>
+ <value>get_sensor</value>
</param>
<param>
<key>_coordinate</key>
- <value>(4, 105)</value>
+ <value>(888, 131)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
- </block>
- <block>
- <key>parameter</key>
<param>
<key>id</key>
- <value>address</value>
+ <value>chan0_lo_locked</value>
</param>
<param>
- <key>_enabled</key>
- <value>True</value>
+ <key>poll_rate</key>
+ <value>10</value>
</param>
<param>
- <key>label</key>
- <value>IP Address</value>
+ <key>value</key>
+ <value>uhd.sensor_value("", False, "")</value>
</param>
+ </block>
+ <block>
+ <key>variable_function_probe</key>
<param>
- <key>value</key>
- <value>addr=192.168.10.2</value>
+ <key>block_id</key>
+ <value>uhd_usrp_source_0</value>
</param>
<param>
- <key>type</key>
- <value>string</value>
+ <key>comment</key>
+ <value></value>
</param>
<param>
- <key>short_id</key>
- <value>a</value>
+ <key>_enabled</key>
+ <value>True</value>
</param>
<param>
- <key>alias</key>
- <value></value>
+ <key>function_args</key>
+ <value>"'lo_locked'"</value>
+ </param>
+ <param>
+ <key>function_name</key>
+ <value>get_sensor</value>
</param>
<param>
<key>_coordinate</key>
- <value>(160, 0)</value>
+ <value>(888, 267)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
- </block>
- <block>
- <key>qtgui_tab_widget</key>
<param>
<key>id</key>
- <value>display</value>
+ <value>current_freq_c</value>
</param>
<param>
- <key>_enabled</key>
- <value>True</value>
+ <key>poll_rate</key>
+ <value>10</value>
</param>
<param>
- <key>num_tabs</key>
- <value>3</value>
+ <key>value</key>
+ <value>freq_c</value>
</param>
+ </block>
+ <block>
+ <key>variable_qtgui_entry</key>
<param>
- <key>label0</key>
- <value>Spectrum</value>
+ <key>comment</key>
+ <value></value>
</param>
<param>
- <key>label1</key>
- <value>Waterfall</value>
+ <key>value</key>
+ <value>freq</value>
</param>
<param>
- <key>label2</key>
- <value>Scope</value>
+ <key>_enabled</key>
+ <value>True</value>
</param>
<param>
- <key>label3</key>
- <value>Tab 3</value>
+ <key>_coordinate</key>
+ <value>(528, 347)</value>
</param>
<param>
- <key>label4</key>
- <value>Tab 4</value>
+ <key>gui_hint</key>
+ <value>3,0,1,2</value>
</param>
<param>
- <key>gui_hint</key>
- <value>2,0,1,4</value>
+ <key>_rotation</key>
+ <value>0</value>
</param>
<param>
- <key>alias</key>
- <value></value>
+ <key>id</key>
+ <value>freq_c</value>
</param>
<param>
- <key>_coordinate</key>
- <value>(6, 178)</value>
+ <key>label</key>
+ <value>RX Tune Frequency</value>
</param>
<param>
- <key>_rotation</key>
- <value>0</value>
+ <key>type</key>
+ <value>real</value>
</param>
</block>
<block>
<key>variable_qtgui_range</key>
<param>
- <key>id</key>
+ <key>comment</key>
+ <value></value>
+ </param>
+ <param>
+ <key>value</key>
<value>gain</value>
</param>
<param>
<key>_enabled</key>
- <value>True</value>
+ <value>1</value>
</param>
<param>
- <key>label</key>
- <value>RX Gain</value>
+ <key>_coordinate</key>
+ <value>(656, 211)</value>
</param>
<param>
- <key>value</key>
- <value>15</value>
+ <key>gui_hint</key>
+ <value>2,0,1,4</value>
</param>
<param>
- <key>start</key>
+ <key>_rotation</key>
<value>0</value>
</param>
<param>
- <key>stop</key>
- <value>31.5</value>
+ <key>id</key>
+ <value>gain_</value>
</param>
<param>
- <key>step</key>
- <value>.5</value>
+ <key>label</key>
+ <value>RX Gain</value>
</param>
<param>
- <key>widget</key>
- <value>counter_slider</value>
+ <key>min_len</key>
+ <value>200</value>
</param>
<param>
<key>orient</key>
<value>Qt.Horizontal</value>
</param>
<param>
- <key>min_len</key>
- <value>200</value>
+ <key>start</key>
+ <value>0</value>
</param>
<param>
- <key>gui_hint</key>
- <value>1,2,1,2</value>
+ <key>step</key>
+ <value>.5</value>
</param>
<param>
- <key>alias</key>
- <value></value>
+ <key>stop</key>
+ <value>31.5</value>
</param>
<param>
- <key>_coordinate</key>
- <value>(694, 216)</value>
+ <key>rangeType</key>
+ <value>float</value>
</param>
<param>
- <key>_rotation</key>
- <value>0</value>
+ <key>widget</key>
+ <value>counter_slider</value>
</param>
</block>
<block>
- <key>variable_qtgui_range</key>
+ <key>variable_qtgui_label</key>
<param>
- <key>id</key>
- <value>freq</value>
+ <key>comment</key>
+ <value></value>
+ </param>
+ <param>
+ <key>value</key>
+ <value>chan0_lo_locked.to_bool()</value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
- <key>label</key>
- <value>RX Tune Frequency</value>
+ <key>formatter</key>
+ <value>None</value>
</param>
<param>
- <key>value</key>
- <value>2.45e9</value>
+ <key>_coordinate</key>
+ <value>(528, 435)</value>
</param>
<param>
- <key>start</key>
- <value>50e6</value>
+ <key>gui_hint</key>
+ <value>4,0,1,2</value>
</param>
<param>
- <key>stop</key>
- <value>6e9</value>
+ <key>_rotation</key>
+ <value>0</value>
</param>
<param>
- <key>step</key>
- <value>100e3</value>
+ <key>id</key>
+ <value>lo_locked_probe</value>
</param>
<param>
- <key>widget</key>
- <value>counter_slider</value>
+ <key>label</key>
+ <value>LO locked</value>
</param>
<param>
- <key>orient</key>
- <value>Qt.Horizontal</value>
+ <key>type</key>
+ <value>bool</value>
</param>
+ </block>
+ <block>
+ <key>variable_qtgui_entry</key>
<param>
- <key>min_len</key>
- <value>200</value>
+ <key>comment</key>
+ <value></value>
</param>
<param>
- <key>gui_hint</key>
- <value>1,0,1,2</value>
+ <key>value</key>
+ <value>samp_rate</value>
</param>
<param>
- <key>alias</key>
- <value></value>
+ <key>_enabled</key>
+ <value>True</value>
</param>
<param>
<key>_coordinate</key>
- <value>(538, 214)</value>
+ <value>(680, 347)</value>
+ </param>
+ <param>
+ <key>gui_hint</key>
+ <value>3,2,1,2</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
- </block>
- <block>
- <key>variable_qtgui_chooser</key>
<param>
<key>id</key>
- <value>ant</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
+ <value>samp_rate_</value>
</param>
<param>
<key>label</key>
- <value>Antenna</value>
+ <value>Sampling Rate</value>
</param>
<param>
<key>type</key>
- <value>string</value>
+ <value>real</value>
</param>
+ </block>
+ <block>
+ <key>variable_qtgui_label</key>
<param>
- <key>num_opts</key>
- <value>4</value>
+ <key>comment</key>
+ <value></value>
</param>
<param>
<key>value</key>
- <value>RX2</value>
+ <value>uhd.get_version_string()</value>
</param>
<param>
- <key>options</key>
- <value>[0, 1, 2]</value>
+ <key>_enabled</key>
+ <value>1</value>
</param>
<param>
- <key>labels</key>
- <value>[]</value>
+ <key>formatter</key>
+ <value>None</value>
</param>
<param>
- <key>option0</key>
- <value>RX2</value>
+ <key>_coordinate</key>
+ <value>(536, 131)</value>
</param>
<param>
- <key>label0</key>
- <value>RX2</value>
+ <key>gui_hint</key>
+ <value>1,0,1,2</value>
</param>
<param>
- <key>option1</key>
- <value>TX/RX</value>
+ <key>_rotation</key>
+ <value>0</value>
</param>
<param>
- <key>label1</key>
- <value>TX/RX</value>
+ <key>id</key>
+ <value>uhd_version_info</value>
</param>
<param>
- <key>option2</key>
- <value>J1</value>
+ <key>label</key>
+ <value>UHD Version</value>
</param>
<param>
- <key>label2</key>
- <value>J1</value>
+ <key>type</key>
+ <value>string</value>
</param>
+ </block>
+ <block>
+ <key>variable_qtgui_label</key>
<param>
- <key>option3</key>
- <value>J2</value>
+ <key>comment</key>
+ <value></value>
</param>
<param>
- <key>label3</key>
- <value>J2</value>
+ <key>value</key>
+ <value>uhd.get_version_string()</value>
</param>
<param>
- <key>option4</key>
- <value>4</value>
+ <key>_enabled</key>
+ <value>1</value>
</param>
<param>
- <key>label4</key>
- <value></value>
+ <key>formatter</key>
+ <value>None</value>
</param>
<param>
- <key>widget</key>
- <value>combo_box</value>
+ <key>_coordinate</key>
+ <value>(712, 131)</value>
</param>
<param>
- <key>orient</key>
- <value>Qt.QVBoxLayout</value>
+ <key>gui_hint</key>
+ <value>1,2,1,2</value>
</param>
<param>
- <key>gui_hint</key>
- <value>0,2,1,2</value>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>id</key>
+ <value>usrp_device_info</value>
+ </param>
+ <param>
+ <key>label</key>
+ <value>Device Information</value>
</param>
<param>
+ <key>type</key>
+ <value>raw</value>
+ </param>
+ </block>
+ <block>
+ <key>parameter</key>
+ <param>
<key>alias</key>
<value></value>
</param>
<param>
+ <key>comment</key>
+ <value></value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
<key>_coordinate</key>
- <value>(810, 124)</value>
+ <value>(792, 3)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
- </block>
- <block>
- <key>variable_qtgui_label</key>
<param>
<key>id</key>
- <value>lo_locked_probe</value>
+ <value>antenna</value>
</param>
<param>
- <key>_enabled</key>
- <value>True</value>
+ <key>label</key>
+ <value>Antenna</value>
</param>
<param>
- <key>label</key>
- <value>LO locked</value>
+ <key>short_id</key>
+ <value>A</value>
</param>
<param>
<key>type</key>
- <value>bool</value>
+ <value>string</value>
</param>
<param>
<key>value</key>
- <value>chan0_lo_locked.to_bool()</value>
+ <value>RX2</value>
</param>
+ </block>
+ <block>
+ <key>parameter</key>
<param>
- <key>gui_hint</key>
- <value>0,1,1,1</value>
+ <key>alias</key>
+ <value></value>
</param>
<param>
- <key>alias</key>
+ <key>comment</key>
<value></value>
</param>
<param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
<key>_coordinate</key>
- <value>(662, 127)</value>
+ <value>(176, -5)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
- </block>
- <block>
- <key>variable_qtgui_label</key>
<param>
<key>id</key>
- <value>samp_rate</value>
+ <value>args</value>
</param>
<param>
- <key>_enabled</key>
- <value>True</value>
+ <key>label</key>
+ <value>UHD device address args</value>
</param>
<param>
- <key>label</key>
- <value>Sample Rate</value>
+ <key>short_id</key>
+ <value>a</value>
</param>
<param>
<key>type</key>
- <value>real</value>
+ <value>string</value>
</param>
<param>
<key>value</key>
- <value>1e6</value>
+ <value></value>
</param>
+ </block>
+ <block>
+ <key>qtgui_tab_widget</key>
<param>
- <key>gui_hint</key>
- <value>0,0,1,1</value>
+ <key>alias</key>
+ <value></value>
</param>
<param>
- <key>alias</key>
+ <key>comment</key>
<value></value>
</param>
<param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
<key>_coordinate</key>
- <value>(543, 128)</value>
+ <value>(6, 178)</value>
+ </param>
+ <param>
+ <key>gui_hint</key>
+ <value>0,0,1,4</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
- </block>
- <block>
- <key>variable_function_probe</key>
<param>
<key>id</key>
- <value>chan0_lo_locked</value>
+ <value>display</value>
</param>
<param>
- <key>_enabled</key>
- <value>True</value>
+ <key>label0</key>
+ <value>Spectrum</value>
</param>
<param>
- <key>value</key>
- <value>uhd.sensor_value("", False, "")</value>
+ <key>label1</key>
+ <value>Waterfall</value>
</param>
<param>
- <key>block_id</key>
- <value>uhd_usrp_source_0</value>
+ <key>label10</key>
+ <value>Tab 10</value>
</param>
<param>
- <key>function_name</key>
- <value>get_sensor</value>
+ <key>label11</key>
+ <value>Tab 11</value>
</param>
<param>
- <key>function_args</key>
- <value>"'lo_locked'"</value>
+ <key>label12</key>
+ <value>Tab 12</value>
</param>
<param>
- <key>poll_rate</key>
- <value>10</value>
+ <key>label13</key>
+ <value>Tab 13</value>
</param>
<param>
- <key>alias</key>
- <value></value>
+ <key>label14</key>
+ <value>Tab 14</value>
</param>
<param>
- <key>_coordinate</key>
- <value>(1014, 164)</value>
+ <key>label15</key>
+ <value>Tab 15</value>
</param>
<param>
- <key>_rotation</key>
- <value>0</value>
+ <key>label16</key>
+ <value>Tab 16</value>
</param>
- </block>
- <block>
- <key>qtgui_waterfall_sink_x</key>
<param>
- <key>id</key>
- <value>qtgui_waterfall_sink_x_0</value>
+ <key>label17</key>
+ <value>Tab 17</value>
</param>
<param>
- <key>_enabled</key>
- <value>True</value>
+ <key>label18</key>
+ <value>Tab 18</value>
</param>
<param>
- <key>type</key>
- <value>complex</value>
+ <key>label19</key>
+ <value>Tab 19</value>
</param>
<param>
- <key>name</key>
+ <key>label2</key>
<value>Scope</value>
</param>
<param>
- <key>fftsize</key>
- <value>1024</value>
- </param>
- <param>
- <key>wintype</key>
- <value>firdes.WIN_BLACKMAN_hARRIS</value>
+ <key>label3</key>
+ <value>Tab 3</value>
</param>
<param>
- <key>fc</key>
- <value>freq</value>
+ <key>label4</key>
+ <value>Tab 4</value>
</param>
<param>
- <key>bw</key>
- <value>samp_rate</value>
+ <key>label5</key>
+ <value>Tab 5</value>
</param>
<param>
- <key>nconnections</key>
- <value>1</value>
+ <key>label6</key>
+ <value>Tab 6</value>
</param>
<param>
- <key>update_time</key>
- <value>0.10</value>
+ <key>label7</key>
+ <value>Tab 7</value>
</param>
<param>
- <key>gui_hint</key>
- <value>address@hidden:3,0,1,4</value>
+ <key>label8</key>
+ <value>Tab 8</value>
</param>
<param>
- <key>label1</key>
- <value></value>
+ <key>label9</key>
+ <value>Tab 9</value>
</param>
<param>
- <key>color1</key>
- <value>0</value>
+ <key>num_tabs</key>
+ <value>3</value>
</param>
+ </block>
+ <block>
+ <key>parameter</key>
<param>
- <key>alpha1</key>
- <value>1.0</value>
+ <key>alias</key>
+ <value></value>
</param>
<param>
- <key>label2</key>
+ <key>comment</key>
<value></value>
</param>
<param>
- <key>color2</key>
- <value>0</value>
+ <key>_enabled</key>
+ <value>True</value>
</param>
<param>
- <key>alpha2</key>
- <value>1.0</value>
+ <key>_coordinate</key>
+ <value>(1104, -5)</value>
</param>
<param>
- <key>label3</key>
- <value></value>
+ <key>_rotation</key>
+ <value>0</value>
</param>
<param>
- <key>color3</key>
- <value>0</value>
+ <key>id</key>
+ <value>fft_size</value>
</param>
<param>
- <key>alpha3</key>
- <value>1.0</value>
+ <key>label</key>
+ <value>Set number of FFT bins</value>
</param>
<param>
- <key>label4</key>
+ <key>short_id</key>
<value></value>
</param>
<param>
- <key>color4</key>
- <value>0</value>
+ <key>type</key>
+ <value>intx</value>
</param>
<param>
- <key>alpha4</key>
- <value>1.0</value>
+ <key>value</key>
+ <value>1024</value>
</param>
+ </block>
+ <block>
+ <key>parameter</key>
<param>
- <key>label5</key>
+ <key>alias</key>
<value></value>
</param>
<param>
- <key>color5</key>
- <value>0</value>
+ <key>comment</key>
+ <value></value>
</param>
<param>
- <key>alpha5</key>
- <value>1.0</value>
+ <key>_enabled</key>
+ <value>True</value>
</param>
<param>
- <key>label6</key>
- <value></value>
+ <key>_coordinate</key>
+ <value>(478, 0)</value>
</param>
<param>
- <key>color6</key>
+ <key>_rotation</key>
<value>0</value>
</param>
<param>
- <key>alpha6</key>
- <value>1.0</value>
+ <key>id</key>
+ <value>freq</value>
</param>
<param>
- <key>label7</key>
- <value></value>
+ <key>label</key>
+ <value>Default Frequency</value>
</param>
<param>
- <key>color7</key>
- <value>0</value>
+ <key>short_id</key>
+ <value>f</value>
</param>
<param>
- <key>alpha7</key>
- <value>1.0</value>
+ <key>type</key>
+ <value>eng_float</value>
</param>
<param>
- <key>label8</key>
+ <key>value</key>
+ <value>2.45e9</value>
+ </param>
+ </block>
+ <block>
+ <key>parameter</key>
+ <param>
+ <key>alias</key>
<value></value>
</param>
<param>
- <key>color8</key>
- <value>0</value>
+ <key>comment</key>
+ <value></value>
</param>
<param>
- <key>alpha8</key>
- <value>1.0</value>
+ <key>_enabled</key>
+ <value>True</value>
</param>
<param>
- <key>label9</key>
- <value></value>
+ <key>_coordinate</key>
+ <value>(632, 3)</value>
</param>
<param>
- <key>color9</key>
+ <key>_rotation</key>
<value>0</value>
</param>
<param>
- <key>alpha9</key>
- <value>1.0</value>
+ <key>id</key>
+ <value>gain</value>
</param>
<param>
- <key>label10</key>
- <value></value>
+ <key>label</key>
+ <value>Set gain in dB (default is midpoint)</value>
</param>
<param>
- <key>color10</key>
- <value>0</value>
+ <key>short_id</key>
+ <value>g</value>
</param>
<param>
- <key>alpha10</key>
- <value>1.0</value>
+ <key>type</key>
+ <value>eng_float</value>
</param>
<param>
+ <key>value</key>
+ <value>20</value>
+ </param>
+ </block>
+ <block>
+ <key>import</key>
+ <param>
<key>alias</key>
<value></value>
</param>
<param>
- <key>affinity</key>
+ <key>comment</key>
<value></value>
</param>
<param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
<key>_coordinate</key>
- <value>(325, 328)</value>
+ <value>(4, 105)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
- </block>
- <block>
- <key>qtgui_freq_sink_x</key>
<param>
<key>id</key>
- <value>qtgui_freq_sink_x_0</value>
+ <value>import_0</value>
</param>
<param>
- <key>_enabled</key>
- <value>True</value>
+ <key>import</key>
+ <value>import numpy</value>
</param>
+ </block>
+ <block>
+ <key>qtgui_freq_sink_x</key>
<param>
- <key>type</key>
- <value>complex</value>
+ <key>autoscale</key>
+ <value>False</value>
</param>
<param>
- <key>name</key>
- <value>Spectrum</value>
+ <key>average</key>
+ <value>0.1</value>
</param>
<param>
- <key>fftsize</key>
- <value>1024</value>
+ <key>bw</key>
+ <value>samp_rate_</value>
</param>
<param>
- <key>wintype</key>
- <value>firdes.WIN_BLACKMAN_hARRIS</value>
+ <key>alias</key>
+ <value></value>
</param>
<param>
<key>fc</key>
<value>freq</value>
</param>
<param>
- <key>bw</key>
- <value>samp_rate</value>
+ <key>comment</key>
+ <value></value>
</param>
<param>
- <key>autoscale</key>
+ <key>ctrlpanel</key>
<value>True</value>
</param>
<param>
- <key>average</key>
- <value>1.0</value>
+ <key>affinity</key>
+ <value></value>
</param>
<param>
- <key>ymin</key>
- <value>-140</value>
+ <key>_enabled</key>
+ <value>True</value>
</param>
<param>
- <key>ymax</key>
- <value>10</value>
+ <key>fftsize</key>
+ <value>fft_size</value>
</param>
<param>
- <key>nconnections</key>
- <value>1</value>
+ <key>_coordinate</key>
+ <value>(311, 217)</value>
</param>
<param>
- <key>update_time</key>
- <value>0.10</value>
+ <key>gui_hint</key>
+ <value>address@hidden:0,0,1,4</value>
</param>
<param>
- <key>gui_hint</key>
- <value>address@hidden:3,0,1,4</value>
+ <key>_rotation</key>
+ <value>0</value>
</param>
<param>
- <key>label1</key>
- <value></value>
+ <key>grid</key>
+ <value>True</value>
</param>
<param>
- <key>width1</key>
- <value>1</value>
+ <key>id</key>
+ <value>qtgui_freq_sink_x_0</value>
</param>
<param>
- <key>color1</key>
- <value>"blue"</value>
+ <key>legend</key>
+ <value>True</value>
</param>
<param>
<key>alpha1</key>
<value>1.0</value>
</param>
<param>
- <key>label2</key>
+ <key>color1</key>
+ <value>"blue"</value>
+ </param>
+ <param>
+ <key>label1</key>
<value></value>
</param>
<param>
- <key>width2</key>
+ <key>width1</key>
<value>1</value>
</param>
<param>
- <key>color2</key>
- <value>"red"</value>
+ <key>alpha10</key>
+ <value>1.0</value>
</param>
<param>
- <key>alpha2</key>
- <value>1.0</value>
+ <key>color10</key>
+ <value>"dark blue"</value>
</param>
<param>
- <key>label3</key>
+ <key>label10</key>
<value></value>
</param>
<param>
- <key>width3</key>
+ <key>width10</key>
<value>1</value>
</param>
<param>
- <key>color3</key>
- <value>"green"</value>
+ <key>alpha2</key>
+ <value>1.0</value>
</param>
<param>
- <key>alpha3</key>
- <value>1.0</value>
+ <key>color2</key>
+ <value>"red"</value>
</param>
<param>
- <key>label4</key>
+ <key>label2</key>
<value></value>
</param>
<param>
- <key>width4</key>
+ <key>width2</key>
<value>1</value>
</param>
<param>
- <key>color4</key>
- <value>"black"</value>
+ <key>alpha3</key>
+ <value>1.0</value>
</param>
<param>
- <key>alpha4</key>
- <value>1.0</value>
+ <key>color3</key>
+ <value>"green"</value>
</param>
<param>
- <key>label5</key>
+ <key>label3</key>
<value></value>
</param>
<param>
- <key>width5</key>
+ <key>width3</key>
<value>1</value>
</param>
<param>
- <key>color5</key>
- <value>"cyan"</value>
+ <key>alpha4</key>
+ <value>1.0</value>
</param>
<param>
- <key>alpha5</key>
- <value>1.0</value>
+ <key>color4</key>
+ <value>"black"</value>
</param>
<param>
- <key>label6</key>
+ <key>label4</key>
<value></value>
</param>
<param>
- <key>width6</key>
+ <key>width4</key>
<value>1</value>
</param>
<param>
- <key>color6</key>
- <value>"magenta"</value>
+ <key>alpha5</key>
+ <value>1.0</value>
</param>
<param>
- <key>alpha6</key>
- <value>1.0</value>
+ <key>color5</key>
+ <value>"cyan"</value>
</param>
<param>
- <key>label7</key>
+ <key>label5</key>
<value></value>
</param>
<param>
- <key>width7</key>
+ <key>width5</key>
<value>1</value>
</param>
<param>
- <key>color7</key>
- <value>"yellow"</value>
+ <key>alpha6</key>
+ <value>1.0</value>
</param>
<param>
- <key>alpha7</key>
- <value>1.0</value>
+ <key>color6</key>
+ <value>"magenta"</value>
</param>
<param>
- <key>label8</key>
+ <key>label6</key>
<value></value>
</param>
<param>
- <key>width8</key>
+ <key>width6</key>
<value>1</value>
</param>
<param>
- <key>color8</key>
- <value>"dark red"</value>
+ <key>alpha7</key>
+ <value>1.0</value>
</param>
<param>
- <key>alpha8</key>
- <value>1.0</value>
+ <key>color7</key>
+ <value>"yellow"</value>
</param>
<param>
- <key>label9</key>
+ <key>label7</key>
<value></value>
</param>
<param>
- <key>width9</key>
+ <key>width7</key>
<value>1</value>
</param>
<param>
- <key>color9</key>
- <value>"dark green"</value>
+ <key>alpha8</key>
+ <value>1.0</value>
</param>
<param>
- <key>alpha9</key>
- <value>1.0</value>
+ <key>color8</key>
+ <value>"dark red"</value>
</param>
<param>
- <key>label10</key>
+ <key>label8</key>
<value></value>
</param>
<param>
- <key>width10</key>
+ <key>width8</key>
<value>1</value>
</param>
<param>
- <key>color10</key>
- <value>"dark blue"</value>
+ <key>alpha9</key>
+ <value>1.0</value>
</param>
<param>
- <key>alpha10</key>
- <value>1.0</value>
+ <key>color9</key>
+ <value>"dark green"</value>
</param>
<param>
- <key>alias</key>
+ <key>label9</key>
<value></value>
</param>
<param>
- <key>affinity</key>
- <value></value>
+ <key>width9</key>
+ <value>1</value>
</param>
<param>
- <key>_coordinate</key>
- <value>(311, 217)</value>
+ <key>maxoutbuf</key>
+ <value>0</value>
</param>
<param>
- <key>_rotation</key>
+ <key>minoutbuf</key>
<value>0</value>
</param>
- </block>
- <block>
- <key>uhd_usrp_source</key>
<param>
- <key>id</key>
- <value>uhd_usrp_source_0</value>
+ <key>name</key>
+ <value>Spectrum</value>
</param>
<param>
- <key>_enabled</key>
- <value>True</value>
+ <key>nconnections</key>
+ <value>1</value>
</param>
<param>
- <key>type</key>
- <value>fc32</value>
+ <key>showports</key>
+ <value>False</value>
</param>
<param>
- <key>otw</key>
- <value></value>
+ <key>freqhalf</key>
+ <value>True</value>
</param>
<param>
- <key>stream_args</key>
- <value></value>
+ <key>tr_chan</key>
+ <value>0</value>
</param>
<param>
- <key>stream_chans</key>
- <value>[]</value>
+ <key>tr_level</key>
+ <value>0.0</value>
</param>
<param>
- <key>dev_addr</key>
- <value>address</value>
+ <key>tr_mode</key>
+ <value>qtgui.TRIG_MODE_FREE</value>
</param>
<param>
- <key>dev_args</key>
+ <key>tr_tag</key>
<value>""</value>
</param>
<param>
- <key>sync</key>
- <value></value>
+ <key>type</key>
+ <value>complex</value>
</param>
<param>
- <key>clock_rate</key>
- <value>0.0</value>
+ <key>update_time</key>
+ <value>update_rate</value>
</param>
<param>
- <key>num_mboards</key>
- <value>1</value>
+ <key>wintype</key>
+ <value>firdes.WIN_BLACKMAN_hARRIS</value>
</param>
<param>
- <key>clock_source0</key>
- <value></value>
+ <key>ymax</key>
+ <value>10</value>
</param>
<param>
- <key>time_source0</key>
- <value></value>
+ <key>ymin</key>
+ <value>-140</value>
</param>
+ </block>
+ <block>
+ <key>qtgui_time_sink_x</key>
<param>
- <key>sd_spec0</key>
- <value></value>
+ <key>autoscale</key>
+ <value>True</value>
</param>
<param>
- <key>clock_source1</key>
+ <key>alias</key>
<value></value>
</param>
<param>
- <key>time_source1</key>
+ <key>comment</key>
<value></value>
</param>
<param>
- <key>sd_spec1</key>
- <value></value>
+ <key>ctrlpanel</key>
+ <value>True</value>
</param>
<param>
- <key>clock_source2</key>
+ <key>affinity</key>
<value></value>
</param>
<param>
- <key>time_source2</key>
- <value></value>
+ <key>entags</key>
+ <value>True</value>
</param>
<param>
- <key>sd_spec2</key>
- <value></value>
+ <key>_enabled</key>
+ <value>True</value>
</param>
<param>
- <key>clock_source3</key>
- <value></value>
+ <key>_coordinate</key>
+ <value>(333, 436)</value>
</param>
<param>
- <key>time_source3</key>
- <value></value>
+ <key>gui_hint</key>
+ <value>address@hidden:0,0,1,4</value>
</param>
<param>
- <key>sd_spec3</key>
- <value></value>
+ <key>_rotation</key>
+ <value>0</value>
</param>
<param>
- <key>clock_source4</key>
- <value></value>
+ <key>grid</key>
+ <value>False</value>
</param>
<param>
- <key>time_source4</key>
- <value></value>
+ <key>id</key>
+ <value>qtgui_time_sink_x_0</value>
</param>
<param>
- <key>sd_spec4</key>
- <value></value>
+ <key>legend</key>
+ <value>True</value>
</param>
<param>
- <key>clock_source5</key>
- <value></value>
+ <key>alpha1</key>
+ <value>1.0</value>
</param>
<param>
- <key>time_source5</key>
- <value></value>
+ <key>color1</key>
+ <value>"blue"</value>
</param>
<param>
- <key>sd_spec5</key>
+ <key>label1</key>
<value></value>
</param>
<param>
- <key>clock_source6</key>
- <value></value>
+ <key>marker1</key>
+ <value>-1</value>
</param>
<param>
- <key>time_source6</key>
- <value></value>
+ <key>style1</key>
+ <value>1</value>
</param>
<param>
- <key>sd_spec6</key>
- <value></value>
+ <key>width1</key>
+ <value>1</value>
</param>
<param>
- <key>clock_source7</key>
- <value></value>
+ <key>alpha10</key>
+ <value>1.0</value>
</param>
<param>
- <key>time_source7</key>
- <value></value>
+ <key>color10</key>
+ <value>"blue"</value>
</param>
<param>
- <key>sd_spec7</key>
+ <key>label10</key>
<value></value>
</param>
<param>
- <key>nchan</key>
- <value>1</value>
+ <key>marker10</key>
+ <value>-1</value>
</param>
<param>
- <key>samp_rate</key>
- <value>samp_rate</value>
+ <key>style10</key>
+ <value>1</value>
</param>
<param>
- <key>center_freq0</key>
- <value>freq</value>
+ <key>width10</key>
+ <value>1</value>
</param>
<param>
- <key>gain0</key>
- <value>gain</value>
+ <key>alpha2</key>
+ <value>1.0</value>
</param>
<param>
- <key>ant0</key>
- <value>ant</value>
+ <key>color2</key>
+ <value>"red"</value>
</param>
<param>
- <key>bw0</key>
- <value>samp_rate</value>
+ <key>label2</key>
+ <value></value>
</param>
<param>
- <key>center_freq1</key>
- <value>0</value>
+ <key>marker2</key>
+ <value>-1</value>
</param>
<param>
- <key>gain1</key>
- <value>0</value>
+ <key>style2</key>
+ <value>1</value>
</param>
<param>
- <key>ant1</key>
- <value></value>
+ <key>width2</key>
+ <value>1</value>
</param>
<param>
- <key>bw1</key>
- <value>0</value>
+ <key>alpha3</key>
+ <value>1.0</value>
</param>
<param>
- <key>center_freq2</key>
- <value>0</value>
+ <key>color3</key>
+ <value>"green"</value>
</param>
<param>
- <key>gain2</key>
- <value>0</value>
+ <key>label3</key>
+ <value></value>
</param>
<param>
- <key>ant2</key>
- <value></value>
+ <key>marker3</key>
+ <value>-1</value>
</param>
<param>
- <key>bw2</key>
- <value>0</value>
+ <key>style3</key>
+ <value>1</value>
</param>
<param>
- <key>center_freq3</key>
+ <key>width3</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>alpha4</key>
+ <value>1.0</value>
+ </param>
+ <param>
+ <key>color4</key>
+ <value>"black"</value>
+ </param>
+ <param>
+ <key>label4</key>
+ <value></value>
+ </param>
+ <param>
+ <key>marker4</key>
+ <value>-1</value>
+ </param>
+ <param>
+ <key>style4</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>width4</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>alpha5</key>
+ <value>1.0</value>
+ </param>
+ <param>
+ <key>color5</key>
+ <value>"cyan"</value>
+ </param>
+ <param>
+ <key>label5</key>
+ <value></value>
+ </param>
+ <param>
+ <key>marker5</key>
+ <value>-1</value>
+ </param>
+ <param>
+ <key>style5</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>width5</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>alpha6</key>
+ <value>1.0</value>
+ </param>
+ <param>
+ <key>color6</key>
+ <value>"magenta"</value>
+ </param>
+ <param>
+ <key>label6</key>
+ <value></value>
+ </param>
+ <param>
+ <key>marker6</key>
+ <value>-1</value>
+ </param>
+ <param>
+ <key>style6</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>width6</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>alpha7</key>
+ <value>1.0</value>
+ </param>
+ <param>
+ <key>color7</key>
+ <value>"yellow"</value>
+ </param>
+ <param>
+ <key>label7</key>
+ <value></value>
+ </param>
+ <param>
+ <key>marker7</key>
+ <value>-1</value>
+ </param>
+ <param>
+ <key>style7</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>width7</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>alpha8</key>
+ <value>1.0</value>
+ </param>
+ <param>
+ <key>color8</key>
+ <value>"dark red"</value>
+ </param>
+ <param>
+ <key>label8</key>
+ <value></value>
+ </param>
+ <param>
+ <key>marker8</key>
+ <value>-1</value>
+ </param>
+ <param>
+ <key>style8</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>width8</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>alpha9</key>
+ <value>1.0</value>
+ </param>
+ <param>
+ <key>color9</key>
+ <value>"dark green"</value>
+ </param>
+ <param>
+ <key>label9</key>
+ <value></value>
+ </param>
+ <param>
+ <key>marker9</key>
+ <value>-1</value>
+ </param>
+ <param>
+ <key>style9</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>width9</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>name</key>
+ <value>QT GUI Plot</value>
+ </param>
+ <param>
+ <key>nconnections</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>size</key>
+ <value>1024</value>
+ </param>
+ <param>
+ <key>srate</key>
+ <value>samp_rate_</value>
+ </param>
+ <param>
+ <key>tr_chan</key>
<value>0</value>
</param>
<param>
- <key>gain3</key>
+ <key>tr_delay</key>
<value>0</value>
</param>
<param>
- <key>ant3</key>
+ <key>tr_level</key>
+ <value>0.0</value>
+ </param>
+ <param>
+ <key>tr_mode</key>
+ <value>qtgui.TRIG_MODE_FREE</value>
+ </param>
+ <param>
+ <key>tr_slope</key>
+ <value>qtgui.TRIG_SLOPE_POS</value>
+ </param>
+ <param>
+ <key>tr_tag</key>
+ <value>""</value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>complex</value>
+ </param>
+ <param>
+ <key>update_time</key>
+ <value>update_rate</value>
+ </param>
+ <param>
+ <key>ylabel</key>
+ <value>Amplitude</value>
+ </param>
+ <param>
+ <key>yunit</key>
+ <value>""</value>
+ </param>
+ <param>
+ <key>ymax</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>ymin</key>
+ <value>-1</value>
+ </param>
+ </block>
+ <block>
+ <key>qtgui_waterfall_sink_x</key>
+ <param>
+ <key>bw</key>
+ <value>samp_rate_</value>
+ </param>
+ <param>
+ <key>alias</key>
<value></value>
</param>
<param>
- <key>bw3</key>
- <value>0</value>
+ <key>fc</key>
+ <value>freq</value>
</param>
<param>
- <key>center_freq4</key>
+ <key>comment</key>
+ <value></value>
+ </param>
+ <param>
+ <key>affinity</key>
+ <value></value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>fftsize</key>
+ <value>1024</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(325, 328)</value>
+ </param>
+ <param>
+ <key>gui_hint</key>
+ <value>address@hidden:0,0,1,4</value>
+ </param>
+ <param>
+ <key>_rotation</key>
<value>0</value>
</param>
<param>
- <key>gain4</key>
+ <key>grid</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>id</key>
+ <value>qtgui_waterfall_sink_x_0</value>
+ </param>
+ <param>
+ <key>int_max</key>
+ <value>10</value>
+ </param>
+ <param>
+ <key>int_min</key>
+ <value>-140</value>
+ </param>
+ <param>
+ <key>legend</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>alpha1</key>
+ <value>1.0</value>
+ </param>
+ <param>
+ <key>color1</key>
<value>0</value>
</param>
<param>
- <key>ant4</key>
+ <key>label1</key>
<value></value>
</param>
<param>
- <key>bw4</key>
- <value>0</value>
+ <key>alpha10</key>
+ <value>1.0</value>
</param>
<param>
- <key>center_freq5</key>
+ <key>color10</key>
<value>0</value>
</param>
<param>
- <key>gain5</key>
+ <key>label10</key>
+ <value></value>
+ </param>
+ <param>
+ <key>alpha2</key>
+ <value>1.0</value>
+ </param>
+ <param>
+ <key>color2</key>
<value>0</value>
</param>
<param>
- <key>ant5</key>
+ <key>label2</key>
<value></value>
</param>
<param>
- <key>bw5</key>
+ <key>alpha3</key>
+ <value>1.0</value>
+ </param>
+ <param>
+ <key>color3</key>
<value>0</value>
</param>
<param>
- <key>center_freq6</key>
+ <key>label3</key>
+ <value></value>
+ </param>
+ <param>
+ <key>alpha4</key>
+ <value>1.0</value>
+ </param>
+ <param>
+ <key>color4</key>
<value>0</value>
</param>
<param>
- <key>gain6</key>
+ <key>label4</key>
+ <value></value>
+ </param>
+ <param>
+ <key>alpha5</key>
+ <value>1.0</value>
+ </param>
+ <param>
+ <key>color5</key>
<value>0</value>
</param>
<param>
- <key>ant6</key>
+ <key>label5</key>
<value></value>
</param>
<param>
- <key>bw6</key>
+ <key>alpha6</key>
+ <value>1.0</value>
+ </param>
+ <param>
+ <key>color6</key>
<value>0</value>
</param>
<param>
- <key>center_freq7</key>
+ <key>label6</key>
+ <value></value>
+ </param>
+ <param>
+ <key>alpha7</key>
+ <value>1.0</value>
+ </param>
+ <param>
+ <key>color7</key>
<value>0</value>
</param>
<param>
- <key>gain7</key>
+ <key>label7</key>
+ <value></value>
+ </param>
+ <param>
+ <key>alpha8</key>
+ <value>1.0</value>
+ </param>
+ <param>
+ <key>color8</key>
<value>0</value>
</param>
<param>
- <key>ant7</key>
+ <key>label8</key>
<value></value>
</param>
<param>
- <key>bw7</key>
+ <key>alpha9</key>
+ <value>1.0</value>
+ </param>
+ <param>
+ <key>color9</key>
<value>0</value>
</param>
<param>
- <key>center_freq8</key>
+ <key>label9</key>
+ <value></value>
+ </param>
+ <param>
+ <key>maxoutbuf</key>
<value>0</value>
</param>
<param>
- <key>gain8</key>
+ <key>minoutbuf</key>
<value>0</value>
</param>
<param>
- <key>ant8</key>
+ <key>name</key>
+ <value>Scope</value>
+ </param>
+ <param>
+ <key>nconnections</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>showports</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>freqhalf</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>complex</value>
+ </param>
+ <param>
+ <key>update_time</key>
+ <value>update_rate</value>
+ </param>
+ <param>
+ <key>wintype</key>
+ <value>firdes.WIN_BLACKMAN_hARRIS</value>
+ </param>
+ </block>
+ <block>
+ <key>parameter</key>
+ <param>
+ <key>alias</key>
<value></value>
</param>
<param>
- <key>bw8</key>
+ <key>comment</key>
+ <value></value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(352, -5)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
<value>0</value>
</param>
<param>
- <key>center_freq9</key>
+ <key>id</key>
+ <value>samp_rate</value>
+ </param>
+ <param>
+ <key>label</key>
+ <value>Sample Rate</value>
+ </param>
+ <param>
+ <key>short_id</key>
+ <value>s</value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>eng_float</value>
+ </param>
+ <param>
+ <key>value</key>
+ <value>1e6</value>
+ </param>
+ </block>
+ <block>
+ <key>parameter</key>
+ <param>
+ <key>alias</key>
+ <value></value>
+ </param>
+ <param>
+ <key>comment</key>
+ <value></value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(888, -13)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
<value>0</value>
</param>
<param>
- <key>gain9</key>
+ <key>id</key>
+ <value>spec</value>
+ </param>
+ <param>
+ <key>label</key>
+ <value>Subdev</value>
+ </param>
+ <param>
+ <key>short_id</key>
+ <value></value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>string</value>
+ </param>
+ <param>
+ <key>value</key>
+ <value></value>
+ </param>
+ </block>
+ <block>
+ <key>parameter</key>
+ <param>
+ <key>alias</key>
+ <value></value>
+ </param>
+ <param>
+ <key>comment</key>
+ <value></value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(176, 115)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
<value>0</value>
</param>
<param>
- <key>ant9</key>
+ <key>id</key>
+ <value>stream_args</value>
+ </param>
+ <param>
+ <key>label</key>
+ <value>Set additional stream args</value>
+ </param>
+ <param>
+ <key>short_id</key>
<value></value>
</param>
<param>
- <key>bw9</key>
+ <key>type</key>
+ <value>string</value>
+ </param>
+ <param>
+ <key>value</key>
+ <value></value>
+ </param>
+ </block>
+ <block>
+ <key>uhd_usrp_source</key>
+ <param>
+ <key>alias</key>
+ <value></value>
+ </param>
+ <param>
+ <key>ant0</key>
+ <value>ant</value>
+ </param>
+ <param>
+ <key>bw0</key>
+ <value>samp_rate</value>
+ </param>
+ <param>
+ <key>center_freq0</key>
+ <value>float(freq_c)</value>
+ </param>
+ <param>
+ <key>norm_gain0</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>gain0</key>
+ <value>gain_</value>
+ </param>
+ <param>
+ <key>ant10</key>
+ <value></value>
+ </param>
+ <param>
+ <key>bw10</key>
<value>0</value>
</param>
<param>
@@ -1373,15 +1922,19 @@
<value>0</value>
</param>
<param>
+ <key>norm_gain10</key>
+ <value>False</value>
+ </param>
+ <param>
<key>gain10</key>
<value>0</value>
</param>
<param>
- <key>ant10</key>
+ <key>ant11</key>
<value></value>
</param>
<param>
- <key>bw10</key>
+ <key>bw11</key>
<value>0</value>
</param>
<param>
@@ -1389,15 +1942,19 @@
<value>0</value>
</param>
<param>
+ <key>norm_gain11</key>
+ <value>False</value>
+ </param>
+ <param>
<key>gain11</key>
<value>0</value>
</param>
<param>
- <key>ant11</key>
+ <key>ant12</key>
<value></value>
</param>
<param>
- <key>bw11</key>
+ <key>bw12</key>
<value>0</value>
</param>
<param>
@@ -1405,15 +1962,19 @@
<value>0</value>
</param>
<param>
+ <key>norm_gain12</key>
+ <value>False</value>
+ </param>
+ <param>
<key>gain12</key>
<value>0</value>
</param>
<param>
- <key>ant12</key>
+ <key>ant13</key>
<value></value>
</param>
<param>
- <key>bw12</key>
+ <key>bw13</key>
<value>0</value>
</param>
<param>
@@ -1421,15 +1982,19 @@
<value>0</value>
</param>
<param>
+ <key>norm_gain13</key>
+ <value>False</value>
+ </param>
+ <param>
<key>gain13</key>
<value>0</value>
</param>
<param>
- <key>ant13</key>
+ <key>ant14</key>
<value></value>
</param>
<param>
- <key>bw13</key>
+ <key>bw14</key>
<value>0</value>
</param>
<param>
@@ -1437,15 +2002,19 @@
<value>0</value>
</param>
<param>
+ <key>norm_gain14</key>
+ <value>False</value>
+ </param>
+ <param>
<key>gain14</key>
<value>0</value>
</param>
<param>
- <key>ant14</key>
+ <key>ant15</key>
<value></value>
</param>
<param>
- <key>bw14</key>
+ <key>bw15</key>
<value>0</value>
</param>
<param>
@@ -1453,15 +2022,19 @@
<value>0</value>
</param>
<param>
+ <key>norm_gain15</key>
+ <value>False</value>
+ </param>
+ <param>
<key>gain15</key>
<value>0</value>
</param>
<param>
- <key>ant15</key>
+ <key>ant16</key>
<value></value>
</param>
<param>
- <key>bw15</key>
+ <key>bw16</key>
<value>0</value>
</param>
<param>
@@ -1469,15 +2042,19 @@
<value>0</value>
</param>
<param>
+ <key>norm_gain16</key>
+ <value>False</value>
+ </param>
+ <param>
<key>gain16</key>
<value>0</value>
</param>
<param>
- <key>ant16</key>
+ <key>ant17</key>
<value></value>
</param>
<param>
- <key>bw16</key>
+ <key>bw17</key>
<value>0</value>
</param>
<param>
@@ -1485,15 +2062,19 @@
<value>0</value>
</param>
<param>
+ <key>norm_gain17</key>
+ <value>False</value>
+ </param>
+ <param>
<key>gain17</key>
<value>0</value>
</param>
<param>
- <key>ant17</key>
+ <key>ant18</key>
<value></value>
</param>
<param>
- <key>bw17</key>
+ <key>bw18</key>
<value>0</value>
</param>
<param>
@@ -1501,15 +2082,19 @@
<value>0</value>
</param>
<param>
+ <key>norm_gain18</key>
+ <value>False</value>
+ </param>
+ <param>
<key>gain18</key>
<value>0</value>
</param>
<param>
- <key>ant18</key>
+ <key>ant19</key>
<value></value>
</param>
<param>
- <key>bw18</key>
+ <key>bw19</key>
<value>0</value>
</param>
<param>
@@ -1517,23 +2102,31 @@
<value>0</value>
</param>
<param>
+ <key>norm_gain19</key>
+ <value>False</value>
+ </param>
+ <param>
<key>gain19</key>
<value>0</value>
</param>
<param>
- <key>ant19</key>
+ <key>ant1</key>
<value></value>
</param>
<param>
- <key>bw19</key>
+ <key>bw1</key>
<value>0</value>
</param>
<param>
- <key>center_freq20</key>
+ <key>center_freq1</key>
<value>0</value>
</param>
<param>
- <key>gain20</key>
+ <key>norm_gain1</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>gain1</key>
<value>0</value>
</param>
<param>
@@ -1545,11 +2138,15 @@
<value>0</value>
</param>
<param>
- <key>center_freq21</key>
+ <key>center_freq20</key>
<value>0</value>
</param>
<param>
- <key>gain21</key>
+ <key>norm_gain20</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>gain20</key>
<value>0</value>
</param>
<param>
@@ -1561,11 +2158,15 @@
<value>0</value>
</param>
<param>
- <key>center_freq22</key>
+ <key>center_freq21</key>
<value>0</value>
</param>
<param>
- <key>gain22</key>
+ <key>norm_gain21</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>gain21</key>
<value>0</value>
</param>
<param>
@@ -1577,11 +2178,15 @@
<value>0</value>
</param>
<param>
- <key>center_freq23</key>
+ <key>center_freq22</key>
<value>0</value>
</param>
<param>
- <key>gain23</key>
+ <key>norm_gain22</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>gain22</key>
<value>0</value>
</param>
<param>
@@ -1593,11 +2198,15 @@
<value>0</value>
</param>
<param>
- <key>center_freq24</key>
+ <key>center_freq23</key>
<value>0</value>
</param>
<param>
- <key>gain24</key>
+ <key>norm_gain23</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>gain23</key>
<value>0</value>
</param>
<param>
@@ -1609,11 +2218,15 @@
<value>0</value>
</param>
<param>
- <key>center_freq25</key>
+ <key>center_freq24</key>
<value>0</value>
</param>
<param>
- <key>gain25</key>
+ <key>norm_gain24</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>gain24</key>
<value>0</value>
</param>
<param>
@@ -1625,11 +2238,15 @@
<value>0</value>
</param>
<param>
- <key>center_freq26</key>
+ <key>center_freq25</key>
<value>0</value>
</param>
<param>
- <key>gain26</key>
+ <key>norm_gain25</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>gain25</key>
<value>0</value>
</param>
<param>
@@ -1641,11 +2258,15 @@
<value>0</value>
</param>
<param>
- <key>center_freq27</key>
+ <key>center_freq26</key>
<value>0</value>
</param>
<param>
- <key>gain27</key>
+ <key>norm_gain26</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>gain26</key>
<value>0</value>
</param>
<param>
@@ -1657,11 +2278,15 @@
<value>0</value>
</param>
<param>
- <key>center_freq28</key>
+ <key>center_freq27</key>
<value>0</value>
</param>
<param>
- <key>gain28</key>
+ <key>norm_gain27</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>gain27</key>
<value>0</value>
</param>
<param>
@@ -1673,11 +2298,15 @@
<value>0</value>
</param>
<param>
- <key>center_freq29</key>
+ <key>center_freq28</key>
<value>0</value>
</param>
<param>
- <key>gain29</key>
+ <key>norm_gain28</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>gain28</key>
<value>0</value>
</param>
<param>
@@ -1689,11 +2318,35 @@
<value>0</value>
</param>
<param>
- <key>center_freq30</key>
+ <key>center_freq29</key>
<value>0</value>
</param>
<param>
- <key>gain30</key>
+ <key>norm_gain29</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>gain29</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>ant2</key>
+ <value></value>
+ </param>
+ <param>
+ <key>bw2</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>center_freq2</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>norm_gain2</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>gain2</key>
<value>0</value>
</param>
<param>
@@ -1705,11 +2358,15 @@
<value>0</value>
</param>
<param>
- <key>center_freq31</key>
+ <key>center_freq30</key>
<value>0</value>
</param>
<param>
- <key>gain31</key>
+ <key>norm_gain30</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>gain30</key>
<value>0</value>
</param>
<param>
@@ -1721,380 +2378,443 @@
<value>0</value>
</param>
<param>
- <key>alias</key>
+ <key>center_freq31</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>norm_gain31</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>gain31</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>ant3</key>
<value></value>
</param>
<param>
- <key>affinity</key>
+ <key>bw3</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>center_freq3</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>norm_gain3</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>gain3</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>ant4</key>
<value></value>
</param>
<param>
- <key>minoutbuf</key>
+ <key>bw4</key>
<value>0</value>
</param>
<param>
- <key>maxoutbuf</key>
+ <key>center_freq4</key>
<value>0</value>
</param>
<param>
- <key>_coordinate</key>
- <value>(33, 295)</value>
+ <key>norm_gain4</key>
+ <value>False</value>
</param>
<param>
- <key>_rotation</key>
+ <key>gain4</key>
<value>0</value>
</param>
- </block>
- <block>
- <key>qtgui_time_sink_x</key>
<param>
- <key>id</key>
- <value>qtgui_time_sink_x_0</value>
+ <key>ant5</key>
+ <value></value>
</param>
<param>
- <key>_enabled</key>
- <value>True</value>
+ <key>bw5</key>
+ <value>0</value>
</param>
<param>
- <key>type</key>
- <value>complex</value>
+ <key>center_freq5</key>
+ <value>0</value>
</param>
<param>
- <key>name</key>
- <value>QT GUI Plot</value>
+ <key>norm_gain5</key>
+ <value>False</value>
</param>
<param>
- <key>size</key>
- <value>1024</value>
+ <key>gain5</key>
+ <value>0</value>
</param>
<param>
- <key>srate</key>
- <value>samp_rate</value>
+ <key>ant6</key>
+ <value></value>
</param>
<param>
- <key>autoscale</key>
- <value>True</value>
+ <key>bw6</key>
+ <value>0</value>
</param>
<param>
- <key>ymin</key>
- <value>-1</value>
+ <key>center_freq6</key>
+ <value>0</value>
</param>
<param>
- <key>ymax</key>
- <value>1</value>
+ <key>norm_gain6</key>
+ <value>False</value>
</param>
<param>
- <key>nconnections</key>
- <value>1</value>
+ <key>gain6</key>
+ <value>0</value>
</param>
<param>
- <key>update_time</key>
- <value>0.10</value>
+ <key>ant7</key>
+ <value></value>
</param>
<param>
- <key>entags</key>
- <value>True</value>
+ <key>bw7</key>
+ <value>0</value>
</param>
<param>
- <key>gui_hint</key>
- <value>address@hidden:3,0,1,4</value>
+ <key>center_freq7</key>
+ <value>0</value>
</param>
<param>
- <key>tr_mode</key>
- <value>qtgui.TRIG_MODE_FREE</value>
+ <key>norm_gain7</key>
+ <value>False</value>
</param>
<param>
- <key>tr_slope</key>
- <value>qtgui.TRIG_SLOPE_POS</value>
+ <key>gain7</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>ant8</key>
+ <value></value>
+ </param>
+ <param>
+ <key>bw8</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>center_freq8</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>norm_gain8</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>gain8</key>
+ <value>0</value>
</param>
<param>
- <key>tr_level</key>
- <value>0.0</value>
+ <key>ant9</key>
+ <value></value>
</param>
<param>
- <key>tr_delay</key>
+ <key>bw9</key>
<value>0</value>
</param>
<param>
- <key>tr_chan</key>
+ <key>center_freq9</key>
<value>0</value>
</param>
<param>
- <key>tr_tag</key>
- <value>""</value>
+ <key>norm_gain9</key>
+ <value>False</value>
</param>
<param>
- <key>label1</key>
- <value></value>
+ <key>gain9</key>
+ <value>0</value>
</param>
<param>
- <key>width1</key>
- <value>1</value>
+ <key>clock_rate</key>
+ <value>0.0</value>
</param>
<param>
- <key>color1</key>
- <value>"blue"</value>
+ <key>comment</key>
+ <value></value>
</param>
<param>
- <key>style1</key>
- <value>1</value>
+ <key>affinity</key>
+ <value></value>
</param>
<param>
- <key>marker1</key>
- <value>-1</value>
+ <key>dev_addr</key>
+ <value>args</value>
</param>
<param>
- <key>alpha1</key>
- <value>1.0</value>
+ <key>dev_args</key>
+ <value>""</value>
</param>
<param>
- <key>label2</key>
- <value></value>
+ <key>_enabled</key>
+ <value>True</value>
</param>
<param>
- <key>width2</key>
- <value>1</value>
+ <key>_coordinate</key>
+ <value>(64, 299)</value>
</param>
<param>
- <key>color2</key>
- <value>"red"</value>
+ <key>_rotation</key>
+ <value>0</value>
</param>
<param>
- <key>style2</key>
- <value>1</value>
+ <key>id</key>
+ <value>uhd_usrp_source_0</value>
</param>
<param>
- <key>marker2</key>
- <value>-1</value>
+ <key>maxoutbuf</key>
+ <value>0</value>
</param>
<param>
- <key>alpha2</key>
- <value>1.0</value>
+ <key>clock_source0</key>
+ <value></value>
</param>
<param>
- <key>label3</key>
- <value></value>
+ <key>sd_spec0</key>
+ <value>spec</value>
</param>
<param>
- <key>width3</key>
- <value>1</value>
+ <key>time_source0</key>
+ <value></value>
</param>
<param>
- <key>color3</key>
- <value>"green"</value>
+ <key>clock_source1</key>
+ <value></value>
</param>
<param>
- <key>style3</key>
- <value>1</value>
+ <key>sd_spec1</key>
+ <value></value>
</param>
<param>
- <key>marker3</key>
- <value>-1</value>
+ <key>time_source1</key>
+ <value></value>
</param>
<param>
- <key>alpha3</key>
- <value>1.0</value>
+ <key>clock_source2</key>
+ <value></value>
</param>
<param>
- <key>label4</key>
+ <key>sd_spec2</key>
<value></value>
</param>
<param>
- <key>width4</key>
- <value>1</value>
+ <key>time_source2</key>
+ <value></value>
</param>
<param>
- <key>color4</key>
- <value>"black"</value>
+ <key>clock_source3</key>
+ <value></value>
</param>
<param>
- <key>style4</key>
- <value>1</value>
+ <key>sd_spec3</key>
+ <value></value>
</param>
<param>
- <key>marker4</key>
- <value>-1</value>
+ <key>time_source3</key>
+ <value></value>
</param>
<param>
- <key>alpha4</key>
- <value>1.0</value>
+ <key>clock_source4</key>
+ <value></value>
</param>
<param>
- <key>label5</key>
+ <key>sd_spec4</key>
<value></value>
</param>
<param>
- <key>width5</key>
- <value>1</value>
+ <key>time_source4</key>
+ <value></value>
</param>
<param>
- <key>color5</key>
- <value>"cyan"</value>
+ <key>clock_source5</key>
+ <value></value>
</param>
<param>
- <key>style5</key>
- <value>1</value>
+ <key>sd_spec5</key>
+ <value></value>
</param>
<param>
- <key>marker5</key>
- <value>-1</value>
+ <key>time_source5</key>
+ <value></value>
</param>
<param>
- <key>alpha5</key>
- <value>1.0</value>
+ <key>clock_source6</key>
+ <value></value>
</param>
<param>
- <key>label6</key>
+ <key>sd_spec6</key>
<value></value>
</param>
<param>
- <key>width6</key>
- <value>1</value>
+ <key>time_source6</key>
+ <value></value>
</param>
<param>
- <key>color6</key>
- <value>"magenta"</value>
+ <key>clock_source7</key>
+ <value></value>
</param>
<param>
- <key>style6</key>
- <value>1</value>
+ <key>sd_spec7</key>
+ <value></value>
</param>
<param>
- <key>marker6</key>
- <value>-1</value>
+ <key>time_source7</key>
+ <value></value>
</param>
<param>
- <key>alpha6</key>
- <value>1.0</value>
+ <key>minoutbuf</key>
+ <value>0</value>
</param>
<param>
- <key>label7</key>
- <value></value>
+ <key>nchan</key>
+ <value>1</value>
</param>
<param>
- <key>width7</key>
+ <key>num_mboards</key>
<value>1</value>
</param>
<param>
- <key>color7</key>
- <value>"yellow"</value>
+ <key>type</key>
+ <value>fc32</value>
</param>
<param>
- <key>style7</key>
- <value>1</value>
+ <key>samp_rate</key>
+ <value>samp_rate_</value>
</param>
<param>
- <key>marker7</key>
- <value>-1</value>
+ <key>stream_args</key>
+ <value>stream_args</value>
</param>
<param>
- <key>alpha7</key>
- <value>1.0</value>
+ <key>stream_chans</key>
+ <value>[]</value>
</param>
<param>
- <key>label8</key>
+ <key>sync</key>
<value></value>
</param>
<param>
- <key>width8</key>
- <value>1</value>
+ <key>otw</key>
+ <value>wire_format</value>
</param>
+ </block>
+ <block>
+ <key>parameter</key>
<param>
- <key>color8</key>
- <value>"dark red"</value>
+ <key>alias</key>
+ <value></value>
</param>
<param>
- <key>style8</key>
- <value>1</value>
+ <key>comment</key>
+ <value></value>
</param>
<param>
- <key>marker8</key>
- <value>-1</value>
+ <key>_enabled</key>
+ <value>True</value>
</param>
<param>
- <key>alpha8</key>
- <value>1.0</value>
+ <key>_coordinate</key>
+ <value>(1104, 107)</value>
</param>
<param>
- <key>label9</key>
- <value></value>
+ <key>_rotation</key>
+ <value>0</value>
</param>
<param>
- <key>width9</key>
- <value>1</value>
+ <key>id</key>
+ <value>update_rate</value>
</param>
<param>
- <key>color9</key>
- <value>"dark green"</value>
+ <key>label</key>
+ <value>Set GUI widget update rate</value>
</param>
<param>
- <key>style9</key>
- <value>1</value>
+ <key>short_id</key>
+ <value></value>
</param>
<param>
- <key>marker9</key>
- <value>-1</value>
+ <key>type</key>
+ <value>eng_float</value>
</param>
<param>
- <key>alpha9</key>
- <value>1.0</value>
+ <key>value</key>
+ <value>.1</value>
</param>
+ </block>
+ <block>
+ <key>parameter</key>
<param>
- <key>label10</key>
+ <key>alias</key>
<value></value>
</param>
<param>
- <key>width10</key>
- <value>1</value>
+ <key>comment</key>
+ <value></value>
</param>
<param>
- <key>color10</key>
- <value>"blue"</value>
+ <key>_enabled</key>
+ <value>True</value>
</param>
<param>
- <key>style10</key>
- <value>1</value>
+ <key>_coordinate</key>
+ <value>(984, -5)</value>
</param>
<param>
- <key>marker10</key>
- <value>-1</value>
+ <key>_rotation</key>
+ <value>0</value>
</param>
<param>
- <key>alpha10</key>
- <value>1.0</value>
+ <key>id</key>
+ <value>wire_format</value>
</param>
<param>
- <key>alias</key>
- <value></value>
+ <key>label</key>
+ <value>Wire format</value>
</param>
<param>
- <key>affinity</key>
+ <key>short_id</key>
<value></value>
</param>
<param>
- <key>_coordinate</key>
- <value>(333, 436)</value>
+ <key>type</key>
+ <value>string</value>
</param>
<param>
- <key>_rotation</key>
- <value>0</value>
+ <key>value</key>
+ <value></value>
</param>
</block>
<connection>
+ <source_block_id>qtgui_freq_sink_x_0</source_block_id>
+ <sink_block_id>qtgui_freq_sink_x_0</sink_block_id>
+ <source_key>freq</source_key>
+ <sink_key>freq</sink_key>
+ </connection>
+ <connection>
+ <source_block_id>qtgui_freq_sink_x_0</source_block_id>
+ <sink_block_id>uhd_usrp_source_0</sink_block_id>
+ <source_key>freq</source_key>
+ <sink_key>command</sink_key>
+ </connection>
+ <connection>
<source_block_id>uhd_usrp_source_0</source_block_id>
- <sink_block_id>qtgui_time_sink_x_0</sink_block_id>
+ <sink_block_id>qtgui_freq_sink_x_0</sink_block_id>
<source_key>0</source_key>
<sink_key>0</sink_key>
</connection>
<connection>
<source_block_id>uhd_usrp_source_0</source_block_id>
- <sink_block_id>qtgui_waterfall_sink_x_0</sink_block_id>
+ <sink_block_id>qtgui_time_sink_x_0</sink_block_id>
<source_key>0</source_key>
<sink_key>0</sink_key>
</connection>
<connection>
<source_block_id>uhd_usrp_source_0</source_block_id>
- <sink_block_id>qtgui_freq_sink_x_0</sink_block_id>
+ <sink_block_id>qtgui_waterfall_sink_x_0</sink_block_id>
<source_key>0</source_key>
<sink_key>0</sink_key>
</connection>