On Mon, Dec 06, 2010 at 08:00:25PM +0100, Antoine Dedave wrote: > Hi, > > I'm using gnuradio for one or two months and I'm trying to implement a flow > graph with a source that has a finite time job. I have seen that such blocks > have to return -1. The problem is when the source has finished its job the > whole flow graph stops and the blocks following the source have no time to > process the whole data coming from the source. > > How can I do to let the whole data be processed by the other blocks before > stopping the flow graph?
Hi Antoine, it seems you're doing exactly the right thing; file sources also call -1 when reaching EOF and I've never had problems using them; GR should clear out the buffers before quitting. Perhaps you can post some more details on what you're doing. Are you using any blocks with histories? For example, the following flow graph will produce N output samples: Source -> Head, Length N -> Delay, length D -> File sink You might expect N+D-1 samples, but the history doesn't get flushed. That's normal. 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-3790 Fax: +49 721 608-6071 www.cel.kit.edu KIT -- University of the State of Baden-Württemberg and National Laboratory of the Helmholtz Association
pgppaApduW0gp.pgp
Description: PGP signature
_______________________________________________ Discuss-gnuradio mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
