discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] about do Dial Tone Output example


From: Li Mei-Wen
Subject: [Discuss-gnuradio] about do Dial Tone Output example
Date: Thu, 24 Sep 2009 14:57:56 +0800

Hi:
I do the Example 1. Dial Tone Output  from http://www.gnu.org/software/gnuradio/doc/exploring-gnuradio.html
And I got error message.
What can I do?
 
Thank in advance.
 
 
 
address@hidden /usr/bin
$ env python
Python 2.5.2 (r252:60911, Dec  2 2008, 09:26:14)
[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from gnuradio import gr
>>> from gnuradio import audio
>>> def build_graph ():
...  sampling_freq = 48000
...  ampl = 0.1
...
...  fg = gr.flow_graph ()
...  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, 0 ), (dst, 0))
...  fg.connect ((src1, 0 ), (dst, 1))
...
...  return fg
...
>>> if __name__ == '__main__':
...  fg = build_graph ()
...  fg.start ()
...  raw_input ('Press Enter to quit: ')
...  fg.stop ()
...
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "<stdin>", line 5, in build_graph
AttributeError: 'module' object has no attribute 'flow_graph'
>>>


聰明搜尋和瀏覽網路的免費工具列 — Windows Live 工具列

reply via email to

[Prev in Thread] Current Thread [Next in Thread]