discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Where can I find gr and audio module?


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] Where can I find gr and audio module?
Date: Mon, 6 Feb 2012 10:53:28 -0500

On Sat, Feb 4, 2012 at 11:21 PM, Nazmul Islam <address@hidden> wrote:
Hello,

I am going through the GNUradio tutorials (the website ones and the ones written by Dawei Shen). The codes in the tutorials import gr and audio packages from gnuradio. I am searching for these modules (especially the gr one) in http://gnuradio.org/doc/doxygen/group__usrp.html. I see a lot of classes that are related with gr, e.g., gr_noise_source & other ones. However, I did not find any module whose title is exactly 'gr'.
 
In tutorial 6, Dawei Shen describes a few lines of the contents of gr. He also mentions about a sub-folder titled 'gr' inside the 'gnuradio' folder (/usr/local/python2.4/site-packages/gnuradio/gr/basic_flow_graph.py). I am currently using gnuradio-3.3. I see subfolders titled gr-audio-jack, gr-paper, etc. in the gnuradio folder. However, I don't see a folder whose title is exactly 'gr'.

   How can I see the contents of gr? I know that I am probably asking a too elementary question due to my limited knowledge in linux & OOP.

   Thanks in advance!

   Nazmul

Nazmul,
You mean like looking at the gr module to see what blocks are included inside? You can just use "dir(gr)", or something like:

for g in dir(gr):
    print g

OR:

print "\n".join([g for g in dir(gr)])

Both of these will print all available objects in gr, one per line.

Also, you can use iPython as a command-line Python interpreter shell. In iPython, typing "dir(gr)" will print the objects as a column, too.

Tom


reply via email to

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