[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Detecting EOF of previous block
From: |
Martin Braun (CEL) |
Subject: |
Re: [Discuss-gnuradio] Detecting EOF of previous block |
Date: |
Mon, 18 Feb 2013 09:27:33 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, Feb 18, 2013 at 12:22:52AM +0100, Martin Lülf wrote:
> So my question is: Can I make gnuradio to not drop the last bits if
> there are less items left than necessary to create output_multiple
> items but instead present this few items to my block together with
> the information that these are not as much items as expected for a
> full block?
Not out of the box, no. set_output_multiple kind of assumes the block
doesn't know how to handle anything else, so what you're asking for
doesn't make sense to the scheduler.
I suggest:
- Setting set_output_multiple() only when the input is invalid;
otherwise, set_output_multiple(1)
- Put a tag on the last set of items and check for that.
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
pgpqo4Uocp8DD.pgp
Description: PGP signature