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