Hi,

> Looking around I don't see where the pointer to the block is made globally
> visible.

No where.

There could be several UHD source/sink blocks, so nothing will be made
globally visible by GR.


> I have python code that creates the blocks and strings them together etc.
> but I want to actually access the created block from c++ code (in the mac
> block implementation).

You'll have to give the instanciated uhd source block as an argument
of your custom block constructor and play with SWIG to make the Python
object be converted back to a C++ smart pointer. Have fun.


> Let me know if I am seriously astray.

You are. Whatever you need to do, there has to be a better way.


Cheers,

    Sylvain

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to