|
From: | Mostafa Alizadeh |
Subject: | Re: [Discuss-gnuradio] How to change a flowgraph in c++ dynamically |
Date: | Thu, 15 May 2014 10:41:26 +0430 |
Hi Martin,Thank you so much, :)The last example you mentioned, gr-uhd/examples/c++/tags_demo.cc, this will help me!!It's interesting example.Thank you.On Wed, May 14, 2014 at 2:32 PM, Martin Braun <address@hidden> wrote:
On 14.05.2014 11:35, Mostafa Alizadeh wrote:
It's better to say in this way: *how could I use stop(), start(),
lock(), unlock() of the topblock methods? Is there any example of them?*
[glados~/src/gnuradio]±(master⚡) ✭ $ ls **/examples/**/*.cc
gr-audio/examples/c++/dial_tone.cc
gr-fcd/examples/c++/fcd_nfm_rx.cc
gr-uhd/examples/c++/tags_demo.cc
Cheers,
Martin
<mailto:address@hidden>> wrote:<mailto:address@hidden
On 13.05.2014 15:56, Mostafa Alizadeh wrote:
Thank you martin,
I saw examples before, but all of them used blocks in the main
of the
c++ code. I wanna have a class derived from topblock of gnuradio
and put
the blocks' connections in it. Then in the main of the program,
run or
stop the topblock.
Can you give a part of the code in c++ ?
If it's not in the examples, I'm not sure what you exactly want.
Also, please use the mailing list for these kinds of requests.
M
On Tue, May 13, 2014 at 5:27 PM, Martin Braun
<address@hidden <mailto:address@hidden>http://gnuradio.org/redmine/____projects/gnuradio/wiki/____TutorialsWritePythonApplicatio____ns
<mailto:address@hidden>__>> wrote:
On 13.05.2014 11:05, Mostafa Alizadeh wrote:
Hi everybody,
I was wonder why I can't make a class of topblock in
c++ like in
python
as said here:
<http://gnuradio.org/redmine/__projects/gnuradio/wiki/__TutorialsWritePythonApplicatio__ns>___________________________________________________ <mailto:address@hidden__org
<http://gnuradio.org/redmine/__projects/gnuradio/wiki/__TutorialsWritePythonApplicatio__ns
<http://gnuradio.org/redmine/projects/gnuradio/wiki/TutorialsWritePythonApplications>>
Then I think, I can control the flowgraph, start or
stop it ,
disconnect
or connect blocks and anything else .
Any idea?
It's pretty much the same, just in C++.
Have a look at the c++ examples in the source tree, that'll
get you
started.
M
<mailto:address@hiddenorg>>
https://lists.gnu.org/mailman/____listinfo/discuss-gnuradio
<https://lists.gnu.org/mailman/__listinfo/discuss-gnuradio>
<https://lists.gnu.org/__mailman/listinfo/discuss-__gnuradio
<https://lists.gnu.org/mailman/listinfo/discuss-gnuradio>>
[Prev in Thread] | Current Thread | [Next in Thread] |