discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] How to change a flowgraph in c++ dynamically


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 Marcus, 

what do you mean by "run to completion" ?

best, 
Mostafa


On Thu, May 15, 2014 at 10:40 AM, Mostafa Alizadeh <address@hidden> wrote:
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



Thanks,



On Wed, May 14, 2014 at 1:20 PM, Martin Braun <address@hidden
<mailto:address@hidden>> wrote:

    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>
        <mailto:address@hidden

        <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
        <http://gnuradio.org/redmine/__projects/gnuradio/wiki/__TutorialsWritePythonApplicatio__ns>



        <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


             ___________________________________________________

             Discuss-gnuradio mailing list
        address@hidden <mailto:address@hiddenorg>
        <mailto:address@hidden__org
        <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>>








reply via email to

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