discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Code for GRC blocks


From: Ben Reynwar
Subject: Re: [Discuss-gnuradio] Code for GRC blocks
Date: Tue, 15 Jan 2013 09:43:43 -0700

First of all take a look at the generated python file.

The block constructors will be things like gr.head, digital.chunks_to_symbols_bc.  The blocks may be implemented in python, by stringing together existing blocks, or they may be implemented in C++.  The python subpackage ("gr" and "digital" here) indicate what subdirectory the files will be in ("gr" corresponds to "gnuradio-core", "digital" to "gr-digital").  I then use 'find' to get the files of interest.

e.g. (assuming a unix-like system)
$ cd gnuradio-core
$ find . -name "*head*"
./src/lib/general/gr_head.cc
./src/lib/general/gr_head.h
./src/lib/general/gr_head.i
./src/lib/general/gr_skiphead.cc
./src/lib/general/gr_skiphead.h
./src/lib/general/gr_skiphead.i
./src/python/gnuradio/gr/qa_head.py
./src/python/gnuradio/gr/qa_skiphead.py
$ cd ../gr-digital
$ find . -name "*chunks_to_symbols*"
find . -name "*chunks_to_symbols*"
./grc/digital_chunks_to_symbols.xml
./include/digital_chunks_to_symbols_XX.h.t
./lib/digital_chunks_to_symbols_XX.cc.t
./python/qa_chunks_to_symbols.py
./swig/digital_chunks_to_symbols_XX.i.t

Sometimes this won't find the python hierarchical files.
So for "digital.psk_mod" I'd use something like
$  cd gr-digital
$ grep -r "class psk_mod" .
./python/psk.py:class psk_mod(generic_mod):


On Tue, Jan 15, 2013 at 7:57 AM, Ghulam Rasool Begh <address@hidden> wrote:
Hi all,
I am new to Gnuradio and learnt few tutorials regarding use of GUI of Gnuradio.
How can I find the code of the blocks used in GR Companion.

Regards
G R Begh


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



reply via email to

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