summaryrefslogtreecommitdiff
path: root/gr-uhd/apps/uhd_fft.py
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2011-12-14 22:23:50 -0500
committerTom Rondeau <trondeau@vt.edu>2011-12-14 22:23:50 -0500
commite4cf0d1b51b7bc9843e76e8d6e35097664b6f2b3 (patch)
treef9a6452c60bd030b8f9b1d198abf304d78b67d0e /gr-uhd/apps/uhd_fft.py
parentaa0cca173047fc268eb3acfcb7cc8cbb2d8c7581 (diff)
uhd: fixes to instantiating UHD devices to set the antenna and subdevice properly (patch from Sam Bretheim).
Diffstat (limited to 'gr-uhd/apps/uhd_fft.py')
-rwxr-xr-xgr-uhd/apps/uhd_fft.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gr-uhd/apps/uhd_fft.py b/gr-uhd/apps/uhd_fft.py
index 7ebf5e1060..a9bb1435ed 100755
--- a/gr-uhd/apps/uhd_fft.py
+++ b/gr-uhd/apps/uhd_fft.py
@@ -85,6 +85,10 @@ class app_top_block(stdgui2.std_top_block):
if(options.spec):
self.u.set_subdev_spec(options.spec, 0)
+ # Set the antenna
+ if(options.antenna):
+ self.u.set_antenna(options.antenna, 0)
+
self.u.set_samp_rate(options.samp_rate)
input_rate = self.u.get_samp_rate()
@@ -128,10 +132,6 @@ class app_top_block(stdgui2.std_top_block):
self.set_gain(options.gain)
- # Set the antenna
- if(options.antenna):
- self.u.set_antenna(options.antenna, 0)
-
if self.show_debug_info:
self.myform['samprate'].set_value(self.u.get_samp_rate())
self.myform['rffreq'].set_value(0)