I found in the docs that general_work only supports outputting the same number of samples to each output port ( https://github.com/gnuradio/gnuradio/blob/master/gnuradio-runtime/include/gnuradio/block.h#L47-L49) but the produce method seems to tell otherwise ( https://github.com/gnuradio/gnuradio/blob/master/gnuradio-runtime/include/gnuradio/block.h#L241-L248) and even has its own return flag for general_work. So, question is: can general_work output different numbers of samples to each output port by use of the produce() function and returning -2 in general_work?
On Wed, Jan 17, 2018 at 6:40 PM, Weihan Chen <alex81...@gmail.com> wrote: > I got it. Thank you for your response. > > Best, > Weihan > > On Wed, Jan 17, 2018 at 5:30 PM, Sakthivel Velumani <sakth...@gmail.com> > wrote: > >> Hi Weihan, >> >> For any block, the noutput_items is just a scalar - meaning "number of >> items actually written to each output stream" is same for all the output >> ports. The buffer size of all output ports are the same. >> >> Best, >> Sakthivel >> >> On Wed, Jan 17, 2018 at 4:23 PM, Weihan Chen <alex81...@gmail.com> wrote: >> >>> Hi, >>> >>> From the manual it says this number is "number of items actually >>> written to each output stream". But I'm a bit confused that if we have >>> a block with multiple output ports, then what does the return value mean? >>> Please help, thanks. >>> >>> Regards, >>> Weihan >>> >>> >>> >>> _______________________________________________ >>> Discuss-gnuradio mailing list >>> Discuss-gnuradio@gnu.org >>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio >>> >>> >> > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > >
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio