[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] How to use gr_hier_block2 with multi output
From: |
Tom Rondeau |
Subject: |
Re: [Discuss-gnuradio] How to use gr_hier_block2 with multi output |
Date: |
Mon, 1 Oct 2012 17:34:51 -0400 |
On Thu, Sep 27, 2012 at 11:21 PM, Luong Tan Phong <address@hidden> wrote:
> Hi Lists,
>
> I've used gr_hier_block2 class with 1 output stream and it's OK but I can't
> use gr_hier_block2 with 2 output streams. Could you help me, please?
>
> Thanks.
>
> Phong
Yes, you should be able to set up an io_signature just like any other
block. You should then be able to use self.connect(block0, (self,0))
and self.connect(block1, (self,1)) to connect them up. Or the
appropriate C++ version for this.
The main restriction is that you cannot have a variable number of
streams. So if you use 2 output streams, you must use io_signature(2,
2, sizeof(...)) and then make sure both streams are connected in your
graph.
Tom
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Discuss-gnuradio] How to use gr_hier_block2 with multi output,
Tom Rondeau <=