diff options
author | trondeau | 2009-06-17 23:31:57 +0000 |
---|---|---|
committer | trondeau | 2009-06-17 23:31:57 +0000 |
commit | f111842d2d79318de500d233c6f6b39a9e635aad (patch) | |
tree | 3542d187b477a1f9f6d76c7f128b8d236366b7e1 /gnuradio-examples/python/digital/benchmark_rx.py | |
parent | db1f124e014622f77d003b1b5c9564d7e4c283c1 (diff) | |
download | gnuradio-f111842d2d79318de500d233c6f6b39a9e635aad.tar.gz gnuradio-f111842d2d79318de500d233c6f6b39a9e635aad.tar.bz2 gnuradio-f111842d2d79318de500d233c6f6b39a9e635aad.zip |
fixes to benchmark_rx
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11226 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-examples/python/digital/benchmark_rx.py')
-rwxr-xr-x | gnuradio-examples/python/digital/benchmark_rx.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gnuradio-examples/python/digital/benchmark_rx.py b/gnuradio-examples/python/digital/benchmark_rx.py index 0e82d9ba9..f33b846fe 100755 --- a/gnuradio-examples/python/digital/benchmark_rx.py +++ b/gnuradio-examples/python/digital/benchmark_rx.py @@ -56,13 +56,19 @@ class my_top_block(gr.top_block): # Set up USRP source self._setup_usrp_source(options) + + # copy the final answers back into options for use by demodulator + options.samples_per_symbol = self._samples_per_symbol + options.bitrate = self._bitrate + options.decim = self._decim + ok = self.set_freq(self._rx_freq) if not ok: print "Failed to set Rx frequency to %s" % (eng_notation.num_to_str(self._rx_freq)) raise ValueError, eng_notation.num_to_str(self._rx_freq) self.set_gain(options.rx_gain) - #self.set_auto_tr(True) # enable Auto Transmit/Receive switching + self.set_auto_tr(True) # enable Auto Transmit/Receive switching # Set up receive path self.rxpath = receive_path(demodulator, rx_callback, options) @@ -108,7 +114,7 @@ class my_top_block(gr.top_block): return self.u.set_gain(gain) def set_auto_tr(self, enable): - return self.subdev.set_auto_tr(enable) + return self.u.set_auto_tr(enable) def decim(self): return self._decim |