summaryrefslogtreecommitdiff
path: root/gr-digital/examples/narrowband/benchmark_rx.py
diff options
context:
space:
mode:
authorJosh Blum2011-10-19 16:37:33 -0700
committerJosh Blum2011-10-19 16:37:33 -0700
commitbe300d920fe1b7a3eb738565cddd10624ec62a75 (patch)
tree45bb49c4a4acd7c93bb218c84b94de4c90f198c5 /gr-digital/examples/narrowband/benchmark_rx.py
parenta57f7484a1b1ba18b66334675ce6458b00d40626 (diff)
parente30b824e9165bff69f09121631c3d5a706cbbd39 (diff)
downloadgnuradio-be300d920fe1b7a3eb738565cddd10624ec62a75.tar.gz
gnuradio-be300d920fe1b7a3eb738565cddd10624ec62a75.tar.bz2
gnuradio-be300d920fe1b7a3eb738565cddd10624ec62a75.zip
Merge branch 'next' of http://gnuradio.org/git/gnuradio into next
Diffstat (limited to 'gr-digital/examples/narrowband/benchmark_rx.py')
-rwxr-xr-xgr-digital/examples/narrowband/benchmark_rx.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gr-digital/examples/narrowband/benchmark_rx.py b/gr-digital/examples/narrowband/benchmark_rx.py
index 65aac3638..32c3222ae 100755
--- a/gr-digital/examples/narrowband/benchmark_rx.py
+++ b/gr-digital/examples/narrowband/benchmark_rx.py
@@ -44,7 +44,11 @@ class my_top_block(gr.top_block):
gr.top_block.__init__(self)
if(options.rx_freq is not None):
- self.source = uhd_receiver(options.address, options.bitrate,
+ # Work-around to get the modulation's bits_per_symbol
+ args = demodulator.extract_kwargs_from_options(options)
+ symbol_rate = options.bitrate / demodulator(**args).bits_per_symbol()
+
+ self.source = uhd_receiver(options.args, symbol_rate,
options.samples_per_symbol,
options.rx_freq, options.rx_gain,
options.antenna, options.verbose)