|
From: | Nowlan, Sean |
Subject: | [Discuss-gnuradio] streaming from file |
Date: | Tue, 13 Nov 2012 21:32:13 +0000 |
Hi all, I am working on a custom block that tags a stream based on a binary file stretched into unpacked form: (1) (2) (3) gr_file_source(repeat=false) --> gr_packed_to_unpacked(1, gr.MSB_FIRST) --> my_block I want to come up with a good way to detect in my_block whether the stream input from (2) is finished. I guess gr_file_source will return WORK_DONE first, but I don’t know if/how that ripples down to my_block. Basically I want to be able
to tag the last incoming sample with an end-of-burst tag, but I don’t know how to do this without having advance knowledge about the size of the source file. Thanks, Sean |
[Prev in Thread] | Current Thread | [Next in Thread] |