summaryrefslogtreecommitdiff
path: root/gr-digital/examples
diff options
context:
space:
mode:
Diffstat (limited to 'gr-digital/examples')
-rwxr-xr-xgr-digital/examples/ofdm/benchmark_ofdm_tx.py6
-rw-r--r--gr-digital/examples/ofdm/transmit_path.py6
2 files changed, 7 insertions, 5 deletions
diff --git a/gr-digital/examples/ofdm/benchmark_ofdm_tx.py b/gr-digital/examples/ofdm/benchmark_ofdm_tx.py
index 02bbeb971..fb4d97302 100755
--- a/gr-digital/examples/ofdm/benchmark_ofdm_tx.py
+++ b/gr-digital/examples/ofdm/benchmark_ofdm_tx.py
@@ -20,12 +20,14 @@
# Boston, MA 02110-1301, USA.
#
-from gnuradio import gr, blks2
+from gnuradio import gr
from gnuradio import eng_notation
from gnuradio.eng_option import eng_option
from optparse import OptionParser
import time, struct, sys
+from gnuradio import digital
+
# from current dir
from transmit_path import transmit_path
from uhd_interface import uhd_transmitter
@@ -75,7 +77,7 @@ def main():
help="Output file for modulated samples")
transmit_path.add_options(parser, expert_grp)
- blks2.ofdm_mod.add_options(parser, expert_grp)
+ digital.ofdm_mod.add_options(parser, expert_grp)
uhd_transmitter.add_options(parser)
(options, args) = parser.parse_args ()
diff --git a/gr-digital/examples/ofdm/transmit_path.py b/gr-digital/examples/ofdm/transmit_path.py
index c5a7fd53d..854cfd51f 100644
--- a/gr-digital/examples/ofdm/transmit_path.py
+++ b/gr-digital/examples/ofdm/transmit_path.py
@@ -45,9 +45,9 @@ class transmit_path(gr.hier_block2):
self._verbose = options.verbose # turn verbose mode on/off
self._tx_amplitude = options.tx_amplitude # digital amp sent to radio
- self.ofdm_tx = blks2.ofdm_mod(options,
- msgq_limit=4,
- pad_for_usrp=False)
+ self.ofdm_tx = digital.ofdm_mod(options,
+ msgq_limit=4,
+ pad_for_usrp=False)
self.amp = gr.multiply_const_cc(1)
self.set_tx_amplitude(self._tx_amplitude)