summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/examples/network
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2012-12-21 15:11:39 -0500
committerTom Rondeau <trondeau@vt.edu>2012-12-21 21:19:13 -0500
commit55d3e4a47958be287648a2021f7e92d81086b2d9 (patch)
treeae0195c457f2cf2734376679cc88c2d728040680 /gnuradio-core/src/examples/network
parentfa781237f341a74a243a9fb930daee7e62c3a682 (diff)
blocks: removes blocks moved to gr-blocks from gnuradio-core.
Also fixes up some other missing moves.
Diffstat (limited to 'gnuradio-core/src/examples/network')
-rwxr-xr-xgnuradio-core/src/examples/network/dial_tone_source.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/gnuradio-core/src/examples/network/dial_tone_source.py b/gnuradio-core/src/examples/network/dial_tone_source.py
index 8c826e2ad4..a8d85c4c57 100755
--- a/gnuradio-core/src/examples/network/dial_tone_source.py
+++ b/gnuradio-core/src/examples/network/dial_tone_source.py
@@ -28,7 +28,12 @@ import sys
try:
from gnuradio import analog
except ImportError:
- sys.stderr.write("This example required gr-analog.\n")
+ sys.stderr.write("This example requires gr-analog.\n")
+
+try:
+ from gnuradio import blocks
+except ImportError:
+ sys.stderr.write("This example requires gr-blocks.\n")
class dial_tone_source(gr.top_block):
def __init__(self, host, port, pkt_size, sample_rate, eof):
@@ -37,7 +42,7 @@ class dial_tone_source(gr.top_block):
amplitude = 0.3
src0 = analog.sig_source_f(sample_rate, analog.GR_SIN_WAVE, 350, amplitude)
src1 = analog.sig_source_f(sample_rate, analog.GR_SIN_WAVE, 440, amplitude)
- add = gr.add_ff()
+ add = blocks.add_ff()
# Throttle needed here to account for the other side's audio card sampling rate
thr = gr.throttle(gr.sizeof_float, sample_rate)