[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] how to stop a flowgraph
From: |
Martin Braun |
Subject: |
Re: [Discuss-gnuradio] how to stop a flowgraph |
Date: |
Wed, 03 Sep 2014 19:59:46 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
On 09/03/2014 07:15 PM, Mostafa Alizadeh wrote:
> In the other words, I want to stop top block but I don't know how? If I
> have one source and one sink, I could stop the top block by returning -1
> from the source, but I don't know what is the solution here when I have
> multiple sources.
That's fine, your fg will eventually shut down. You can also call stop()
on your top_block.
M
>
> best,
> Mostafa
>
>
>
>
> On Wed, Sep 3, 2014 at 10:20 AM, Mostafa Alizadeh
> <address@hidden <mailto:address@hidden>> wrote:
>
> Hi all,
>
> I have the following flowgraph:
>
> Inline image 2
>
> I want to interrupt the whole flowgraph to back to the main function
> (C++). I used to return -1 or WORK_DONE in the work function of the
> sink block but it doesn't work. What is the solution?
>
> Thanks in advance,
> Mostafa
>
>
>
>
> --
> ***********************************************************
> Department of Electrical Engineering
> Aboureyhan Building
> MMWCL LAB
> Amirkabir University Of Technology
> Tehran
> IRAN
> Tel: +98 (919) 158-7730
> LAB: http://ele.aut.ac.ir/~mmwcl/?page_id=411
> <http://ele.aut.ac.ir/%7Emmwcl/?page_id=411>
> Homepage: http://ele.aut.ac.ir/~alizadeh/
> <http://ele.aut.ac.ir/%7Ealizadeh/>
> ***********************************************************
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>