summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjcorgan2007-11-19 17:59:19 +0000
committerjcorgan2007-11-19 17:59:19 +0000
commitb4a1b8d3c23ce86cf89cbba220b3b0acae3c2b24 (patch)
tree6811802bf14e1ed1168bd9240389cd8e405409c7
parentb54da83a00895d11ba28fa73e7cbc5bf77c5b6d2 (diff)
downloadgnuradio-b4a1b8d3c23ce86cf89cbba220b3b0acae3c2b24.tar.gz
gnuradio-b4a1b8d3c23ce86cf89cbba220b3b0acae3c2b24.tar.bz2
gnuradio-b4a1b8d3c23ce86cf89cbba220b3b0acae3c2b24.zip
Partial completion of ticket:201.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7000 221aa14e-8319-0410-a670-987f0aec2ac5
-rwxr-xr-xdocs/exploring-gnuradio/dial_tone.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/exploring-gnuradio/dial_tone.py b/docs/exploring-gnuradio/dial_tone.py
index 74570b866..9cc05baa3 100755
--- a/docs/exploring-gnuradio/dial_tone.py
+++ b/docs/exploring-gnuradio/dial_tone.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
-# Copyright 2004 Free Software Foundation, Inc.
+# Copyright 2004,2007 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
@@ -27,17 +27,17 @@ def build_graph ():
sampling_freq = 32000
ampl = 0.1
- fg = gr.flow_graph ()
+ tb = gr.top_block ()
src0 = gr.sig_source_f (sampling_freq, gr.GR_SIN_WAVE, 350, ampl)
src1 = gr.sig_source_f (sampling_freq, gr.GR_SIN_WAVE, 440, ampl)
dst = audio.sink (sampling_freq)
- fg.connect (src0, (dst, 0))
- fg.connect (src1, (dst, 1))
+ tb.connect (src0, (dst, 0))
+ tb.connect (src1, (dst, 1))
- return fg
+ return tb
if __name__ == '__main__':
- fg = build_graph ()
- fg.start ()
+ tb = build_graph ()
+ tb.start ()
raw_input ('Press Enter to quit: ')
- fg.stop ()
+ tb.stop ()