discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] return value of gr::block::general_work


From: Dave NotTelling
Subject: Re: [Discuss-gnuradio] return value of gr::block::general_work
Date: Sun, 21 Jan 2018 13:19:40 -0500

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 <address@hidden> wrote:
I got it. Thank you for your response. 

Best,
Weihan

On Wed, Jan 17, 2018 at 5:30 PM, Sakthivel Velumani <address@hidden> 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 <address@hidden> 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
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio




_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



reply via email to

[Prev in Thread] Current Thread [Next in Thread]