On Fri, May 03, 2013 at 09:08:34AM +0200, Martin Braun (CEL) wrote:
> > Currently I have an implementation of the block, but I am having trouble
> > understanding the relationship between ninput_items and noutput_items.  
> > When I
> > feed the block from a file source consisting of 720 samples, I get 
> > ninput_items
> > [0] = 720 and noutput_items = 512.  Does this value for noutput_items mean I
> > can only consume and copy 512 of the input samples?  And do I need to 
> > implement
> > forecast if I want to output more?
> 
> That depends. Do you *really* want to output more? How many? What if
> your have 1440 items at the input?
> 
> Basically, this is telling you there's space for 512 items in the output
> buffer. If you can use a sync_block, you'll never run into these
> problems, because there's only one value.

Also, there's lots of other functions to control the output buffer size,
e.g. set_output_multiple(), set_min_output_items()...

MB


-- 
Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin Braun
Research Associate

Kaiserstraße 12
Building 05.01
76131 Karlsruhe

Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu

KIT -- University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association

Attachment: pgpWUYSAgXfb7.pgp
Description: PGP signature

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

Reply via email to