diff options
author | Tom Rondeau | 2011-12-14 22:24:44 -0500 |
---|---|---|
committer | Tom Rondeau | 2011-12-14 22:24:44 -0500 |
commit | 25c494b347a9e0c411c8cff0101f6c7c656464f0 (patch) | |
tree | 60b7598b4c5d56366eb8230ca12b1610bab3cc8c /gr-digital/examples/ofdm | |
parent | 1f29a384ecd6512f5cb0891dbd651aca8ced86ed (diff) | |
parent | f395bd639c64ea7b61d1e5091f5af0b419a5b3a2 (diff) | |
download | gnuradio-25c494b347a9e0c411c8cff0101f6c7c656464f0.tar.gz gnuradio-25c494b347a9e0c411c8cff0101f6c7c656464f0.tar.bz2 gnuradio-25c494b347a9e0c411c8cff0101f6c7c656464f0.zip |
Merge branch 'master' into next
Diffstat (limited to 'gr-digital/examples/ofdm')
-rw-r--r-- | gr-digital/examples/ofdm/uhd_interface.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gr-digital/examples/ofdm/uhd_interface.py b/gr-digital/examples/ofdm/uhd_interface.py index 14a542b0f..e4b13955d 100644 --- a/gr-digital/examples/ofdm/uhd_interface.py +++ b/gr-digital/examples/ofdm/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.set_sample_rate(bandwidth) - # 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.set_sample_rate(bandwidth) + def set_sample_rate(self, bandwidth): self.u.set_samp_rate(bandwidth) actual_bw = self.u.get_samp_rate() |