How to use gr_hier_block2 with multi output

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

On Thu, Sep 27, 2012 at 11:21 PM, Luong Tan P. [email protected]
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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs