The method I want to call is thread-safe, and the target block doesn't
support the required message.
Regardless, I only need it for quick prototyping so I don't care at this
stage if this is clean or not. This is an experimental GRC flowgraph for me.
How do you pass a reference to the target block, or to the top block, from
GRC GUI, to my custom block?

On Thu, Mar 22, 2018 at 5:32 PM Johannes Demel <de...@ant.uni-bremen.de>
wrote:

> Hi Gilad,
>
> it is possible to pass references to other blocks to your custom block.
> But you should avoid this implementation. First off, another block is
> scheduled in another thread. This might cause runtime issues.
>
> If you need status information from another block, add a message port
> that outputs this information. Make it useful to everyone and upstream
> your additional functionality.
>
> If you want to update the internal status of another block. Definitely
> use message ports to set internal variables.
>
> Cheers
> Johannes
>
> On 22.03.2018 14:34, Gilad Beeri (ApolloShield) wrote:
> > I have a block I implemented, and I use it inside a GRC flowgraph with
> > many in-tree blocks.
> > I want to reference one of those blocks from my own block (call one of
> > its methods).
> >
> > Is it possible in GRC without manual modification of the generated
> > Python file?
> >
> >
> > _______________________________________________
> > Discuss-gnuradio mailing list
> > Discuss-gnuradio@gnu.org
> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> >
>
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to