discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Passing a variable to other blocks


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] Passing a variable to other blocks
Date: Thu, 21 Nov 2013 09:16:55 -0500

On Thu, Nov 21, 2013 at 7:13 AM, Aydin Tarik Zengin
<address@hidden> wrote:
> Hello Everyone
>
> I was wondering how to pass a variable defined in one block to another.
> For instance, say we defined a variable in a block impl.cc, how can I pass
> this variable to another block? Or how can I make it public to be reached
> from every block in my flow graph?
>
> I checked the variable block, but it defines it in the top_block.py as I
> understood correctly.
> I'm trying to write my own blocks, and I gotta pass some of my variables to
> the others.
> What's your advice?
>
> Thanks in advance
>
> Tarik


You'll want to use the message passing interface for this:

http://gnuradio.org/doc/doxygen/page_msg_passing.html

Tom



reply via email to

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