diff options
author | Tom Rondeau | 2011-12-14 22:23:50 -0500 |
---|---|---|
committer | Tom Rondeau | 2011-12-14 22:23:50 -0500 |
commit | e4cf0d1b51b7bc9843e76e8d6e35097664b6f2b3 (patch) | |
tree | f9a6452c60bd030b8f9b1d198abf304d78b67d0e /gr-shd | |
parent | aa0cca173047fc268eb3acfcb7cc8cbb2d8c7581 (diff) | |
download | gnuradio-e4cf0d1b51b7bc9843e76e8d6e35097664b6f2b3.tar.gz gnuradio-e4cf0d1b51b7bc9843e76e8d6e35097664b6f2b3.tar.bz2 gnuradio-e4cf0d1b51b7bc9843e76e8d6e35097664b6f2b3.zip |
uhd: fixes to instantiating UHD devices to set the antenna and subdevice properly (patch from Sam Bretheim).
Diffstat (limited to 'gr-shd')
-rwxr-xr-x | gr-shd/apps/shd_fft.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gr-shd/apps/shd_fft.py b/gr-shd/apps/shd_fft.py index 81e84d383..46832784d 100755 --- a/gr-shd/apps/shd_fft.py +++ b/gr-shd/apps/shd_fft.py @@ -71,6 +71,9 @@ class app_top_block(stdgui2.std_top_block): io_type=shd.io_type.COMPLEX_FLOAT32, num_channels=1) + if(options.antenna): + self.src.set_antenna(options.antenna, 0) + self.src.set_samp_rate(options.samp_rate) input_rate = self.src.get_samp_rate() @@ -112,9 +115,6 @@ class app_top_block(stdgui2.std_top_block): self.set_gain(options.gain) - if(options.antenna): - self.src.set_antenna(options.antenna, 0) - if self.show_debug_info: self.myform['samprate'].set_value(self.src.get_samp_rate()) self.myform['fs@gbe'].set_value(input_rate) |