On Wed, Apr 18, 2012 at 18:01, Marcus D. Leech <[email protected]> wrote:

> Is it possible to specify a source block purely in Python using
> gr.hier_block2?

Yes.  Just specify the input signature with gr.io_signature(0,0,0),
and the output with whatever you need, probably gr.io_signature(1,1,
gr.sizeof_gr_complex) .

Internally just connect the output of whatever block you instantiate
to the output of the hier_block2 the usual way.

Johnathan

_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to