From f111842d2d79318de500d233c6f6b39a9e635aad Mon Sep 17 00:00:00 2001 From: trondeau Date: Wed, 17 Jun 2009 23:31:57 +0000 Subject: fixes to benchmark_rx git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11226 221aa14e-8319-0410-a670-987f0aec2ac5 --- gnuradio-examples/python/digital/benchmark_rx.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'gnuradio-examples/python/digital/benchmark_rx.py') 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 -- cgit