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.

 

 

 

em...@ncku-34be181a97 /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 相簿分享相片
http://download.live.com/toolbar
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to