summaryrefslogtreecommitdiff
path: root/gr-digital/examples/narrowband/benchmark_tx.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_tx.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_tx.py')
-rwxr-xr-xgr-digital/examples/narrowband/benchmark_tx.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gr-digital/examples/narrowband/benchmark_tx.py b/gr-digital/examples/narrowband/benchmark_tx.py
index 1fd881981..25ed355da 100755
--- a/gr-digital/examples/narrowband/benchmark_tx.py
+++ b/gr-digital/examples/narrowband/benchmark_tx.py
@@ -43,7 +43,11 @@ class my_top_block(gr.top_block):
gr.top_block.__init__(self)
if(options.tx_freq is not None):
- self.sink = uhd_transmitter(options.address, options.bitrate,
+ # Work-around to get the modulation's bits_per_symbol
+ args = modulator.extract_kwargs_from_options(options)
+ symbol_rate = options.bitrate / modulator(**args).bits_per_symbol()
+
+ self.sink = uhd_transmitter(options.args, symbol_rate,
options.samples_per_symbol,
options.tx_freq, options.tx_gain,
options.antenna, options.verbose)