I wrote a block using gnuradio history functionality. The block is
from gr::block (built by command “gr_modtool add -t general my_block”),
history set to a bit large number, 320. I then finished rest parts of
I run the flowgraph and output the input buffer of this block when the
general_work() function is called. Then I found the history of the block
stored at the end of the input buffer, which is not as what the tutorial
For example, suppose my block is prepended by a delay block with delay
set to 16, the content of the input buffer of my block at the first time
when general_work() is called is 336 complex zeros. Then my block
all 16 zeros by calling consume_each(16) and return the number of output
items. According the description of gnuradio history functionality, the
content of the input buffer of my block at the second time when
general_work() is called ought to be 320 complex zeros (history)
some data items. Yet in fact, what I get at second time is some data
followed by 320 complex zeros!
I have no idea why it happens. Could anyone help me please? Thank you!
View this message in context:
Sent from the GnuRadio mailing list archive at Nabble.com.