|Subject:||Re: [Discuss-gnuradio] About the use of gr.probe_signal_f()|
|Date:||Thu, 16 Feb 2012 15:27:12 +0900|
Thank you for your information. Reading examples are currently a major way for me to learn GR. I will try to read and run the QA code as you introduced.
From: address@hidden [mailto:address@hidden On Behalf Of Tom Rondeau
2012/2/15 Wu Ting <address@hidden>
Thanks. This site is helpful. It would be really great if it has some examples for each function.
There are lots of examples, but they don't necessarily cover every block in GNU Radio. Another place to look, though, is in the QA code. This is code used during a 'make test/check' to verify that the code produces the correct results. We _try_ to make QA code cover all cases of a block, and they are nice in that they are generally the simplest possible flowgraph needed to run the block being tested (vector_source_x -> block -> vector_sink_x).
The QA code can be found in a few different locations. For new top-level blocks (like gr-digital), you can find it in the 'python' directory. They are all named with a 'qa_' prefix.
The majority of the QA code, though, is for the blocks in gnuradio-core. You'll find these in gnuradio-core/src/python/gnuradio/gr. Again with the 'qa_' naming convention.
To run a stand-along QA code, it's easiest if you're using the cmake build, because it uses ctest to run them. You can run a specific test by using a regular _expression_ match by passing the -R option to ctest and -V to make it verbose. Say you wanted to run just the gr_fft_filter test, you can use 'ctest -V -R fft_filter'. The regular _expression_ will match just that code. You can get fancier, too, if you want.
Now that you bring it up, since these programs are spread throughout the code and are not just Python programs you can necessarily just run (since they work as part of a test suite), I could see a small project set up using CGRAN and/or Github to hold a set of small programs used just as examples of a particular block.
|[Prev in Thread]||Current Thread||[Next in Thread]|