[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] gr.hier_block2 in Python
From: |
Johnathan Corgan |
Subject: |
Re: [Discuss-gnuradio] gr.hier_block2 in Python |
Date: |
Wed, 18 Apr 2012 18:23:10 -0700 |
On Wed, Apr 18, 2012 at 18:01, Marcus D. Leech <address@hidden> 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