summaryrefslogtreecommitdiff
path: root/gr-digital/examples/narrowband
diff options
context:
space:
mode:
authorTom Rondeau2011-12-14 22:24:37 -0500
committerTom Rondeau2011-12-14 22:24:37 -0500
commitf395bd639c64ea7b61d1e5091f5af0b419a5b3a2 (patch)
treeb002d23b88a936351008aed8f92b6ba014496871 /gr-digital/examples/narrowband
parent7b3e1522274a41bcc3b432817bb02c33b2e4f84c (diff)
parente4cf0d1b51b7bc9843e76e8d6e35097664b6f2b3 (diff)
downloadgnuradio-f395bd639c64ea7b61d1e5091f5af0b419a5b3a2.tar.gz
gnuradio-f395bd639c64ea7b61d1e5091f5af0b419a5b3a2.tar.bz2
gnuradio-f395bd639c64ea7b61d1e5091f5af0b419a5b3a2.zip
Merge branch 'maint'
Diffstat (limited to 'gr-digital/examples/narrowband')
-rw-r--r--gr-digital/examples/narrowband/uhd_interface.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/gr-digital/examples/narrowband/uhd_interface.py b/gr-digital/examples/narrowband/uhd_interface.py
index 27e370911..fe022c731 100644
--- a/gr-digital/examples/narrowband/uhd_interface.py
+++ b/gr-digital/examples/narrowband/uhd_interface.py
@@ -50,14 +50,6 @@ class uhd_interface:
else:
self.u = uhd.usrp_source(device_addr=args, stream_args=uhd.stream_args('fc32'))
- self._args = args
- self._ant = antenna
- self._spec = spec
- self._gain = self.set_gain(gain)
- self._freq = self.set_freq(freq)
-
- self._rate, self._sps = self.set_sample_rate(sym_rate, sps)
-
# Set the subdevice spec
if(spec):
self.u.set_subdev_spec(spec, 0)
@@ -66,6 +58,14 @@ class uhd_interface:
if(antenna):
self.u.set_antenna(antenna, 0)
+ self._args = args
+ self._ant = antenna
+ self._spec = spec
+ self._gain = self.set_gain(gain)
+ self._freq = self.set_freq(freq)
+
+ self._rate, self._sps = self.set_sample_rate(sym_rate, sps)
+
def set_sample_rate(self, sym_rate, req_sps):
start_sps = req_sps
while(True):