On Thu, Sep 27, 2012 at 11:21 PM, Luong Tan Phong <phongl...@gmail.com> 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 _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio