Hi,
I am reading the polyphase filterbank documentation. It points to a
directory where examples are contained: *gnuradio-examples/python/pfb.
*In
my installation I have the following directories and files:
-rw-rw-r-- 1 ldz ldz 4041 Sep 18 2012 README-win32-mingw-short.txt
-rw-rw-r-- 1 ldz ldz 10237 Sep 18 2012 README.hacking
-rw-rw-r-- 1 ldz ldz 1695 Sep 18 2012 README.building-boost
-rw-rw-r-- 1 ldz ldz 4846 Sep 18 2012 README
-rw-rw-r-- 1 ldz ldz 35147 Sep 18 2012 COPYING
-rw-rw-r-- 1 ldz ldz 9527 Sep 18 2012 CMakeLists.txt
-rw-rw-r-- 1 ldz ldz 1155 Sep 18 2012 AUTHORS
drwxrwxr-x 6 ldz ldz 4096 Sep 18 2012 cmake
drwxrwxr-x 5 ldz ldz 4096 Sep 18 2012 docs
drwxrwxr-x 3 ldz ldz 4096 Sep 18 2012 gnuradio-core
drwxrwxr-x 3 ldz ldz 4096 Sep 18 2012 dtools
drwxrwxr-x 3 ldz ldz 4096 Sep 18 2012 gr-atsc
drwxrwxr-x 3 ldz ldz 4096 Sep 18 2012 gr-comedi
drwxrwxr-x 8 ldz ldz 4096 Sep 18 2012 gr-audio
drwxrwxr-x 9 ldz ldz 4096 Sep 18 2012 gr-digital
drwxrwxr-x 8 ldz ldz 4096 Sep 18 2012 gr-fft
drwxrwxr-x 9 ldz ldz 4096 Sep 18 2012 gr-fcd
drwxrwxr-x 9 ldz ldz 4096 Sep 18 2012 gr-filter
drwxrwxr-x 7 ldz ldz 4096 Sep 18 2012 gr-noaa
drwxrwxr-x 10 ldz ldz 4096 Sep 18 2012 gr-howto-write-a-block
drwxrwxr-x 7 ldz ldz 4096 Sep 18 2012 gr-pager
drwxrwxr-x 10 ldz ldz 4096 Sep 18 2012 gr-qtgui
drwxrwxr-x 5 ldz ldz 4096 Sep 18 2012 gr-trellis
drwxrwxr-x 7 ldz ldz 4096 Sep 18 2012 gr-shd
drwxrwxr-x 3 ldz ldz 4096 Sep 18 2012 gr-utils
drwxrwxr-x 9 ldz ldz 4096 Sep 18 2012 gr-uhd
drwxrwxr-x 3 ldz ldz 4096 Sep 18 2012 gr-video-sdl
drwxrwxr-x 9 ldz ldz 4096 Sep 18 2012 gr-vocoder
drwxrwxr-x 6 ldz ldz 4096 Sep 18 2012 gr-wavelet
drwxrwxr-x 4 ldz ldz 4096 Sep 18 2012 gr-wxgui
drwxrwxr-x 3 ldz ldz 4096 Sep 18 2012 gruel
drwxrwxr-x 11 ldz ldz 4096 Sep 18 2012 grc
drwxrwxr-x 10 ldz ldz 4096 Sep 18 2012 volk
drwxrwxr-x 27 ldz ldz 4096 Sep 18 2012 build
I don’t see a gnuradio-examples directory either above or below this
level.
Other searches in other directories have yielded nothing. Is this a
on-line
location or a directory in the installation?
Thanks,
LD
Thanks for letting us know the documentation is out of date.
You should find filterbank examples in gr-filter/examples.
No, there’s no way to produce a GRC file from a python file.
Thanks I found it as in gr-filter/examples/python/pfb.py. I also found
something in gnuradio-core/src/examples/pfb directory.
Have to excuse my ignorance here since I haven’t really worked that much
with python approach. Have mostly stayed in GRC flow graph and used the
generator to get the python code. Once I have the generated python code,
then I can do simple edits to improve here and there. So I am not quite
used
to reading the code as is.
My question is: Is there a way to re-display the pfb.py back onto the
GRC
graphical window? If not, what do I need to do in order to bring it back
to
GRC? Is what I am trying here making sense at all?
Thanks a lot,
LD
Ah, sorry, I misunderstood your question. Yes, the GRC block
pfb_channelizer_ccf is equivalent to the block in
gr-filter/python/pfb.py, and, in fact, will use this block in the
generated python.
Is it equivalent to use the pfb_channelizer_ccf block in the GRC though?
Does the GRC approach suffer reduced capability vs. the python approach?
LD
I find the example at the online page
http://gnuradio.org/doc/doxygen/page_pfb.html very helpful (code at the
end
of the page). It runs and generates nice plots. Still trying to get used
to
it.
But the code at gr-filter/python/pfb.py does not run. It appears to be a
module? How do I run it or use it?
Also what does gr-filter/python/qa_pfb_channelizer.py do? Some of this
trace to pfb_channelizer_ccf.cc code? What does “blks2” relate to this
and
other examples?
Thanks for explaining,
LD
On Wed, May 15, 2013 at 12:15 AM, LD Zhang [email protected] wrote:
I find the example at the online page
http://gnuradio.org/doc/doxygen/page_pfb.html very helpful (code at the end
of the page). It runs and generates nice plots. Still trying to get used to
it.
Great!
But the code at gr-filter/python/pfb.py does not run. It appears to be a
module? How do I run it or use it?
That’s not a Python file that is designed to be run from the command
line. It gets installed and provides helper hier_block2 classes to
make using the PFB code easier. So you would use it in a program like
filter.pfb.channelizer_ccf(…).
Look at the examples in gr-filter/examples, not at this file.
Also what does gr-filter/python/qa_pfb_channelizer.py do? Some of this trace
to pfb_channelizer_ccf.cc code? What does “blks2” relate to this and other
examples?
Thanks for explaining,
LD
Yes, the QA code is our quality assurance code that is executed during
‘make test’. But they can be useful to show you how to use the blocks.
The blks2 is a set of classes created in
gnuradio-core/src/python/gnuradio/blks2impl, including some of the
original PFB stuff that is now moved into gr-filter completely. Note
that we have deleted blks2 from GNU Radio on the next branch (and
therefore in 3.7), so this will all be replaced by things like
filter.pfb…
Tom