discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Bug in tag processing


From: Eugene Grayver
Subject: [Discuss-gnuradio] Bug in tag processing
Date: Mon, 14 Mar 2016 19:05:44 +0000

I think there's a bug in tag processing.  Here's a simple script to demonstrate the problem.  If DELAY is set to a small value <6000,  we get the expected output. However, if DELAY is set to 8000, the tag never comes out.  The same problem can be observed using the blocks.vector_insert_b block, indicating that the bug is in the runtime.



------------------------

DELAY = 8000
from gnuradio import gr, blocks
import pmt
print "Version", gr.version()
top = gr.top_block()
tag = gr.python_to_tag((0, pmt.to_pmt('A'), pmt.to_pmt(1), pmt.PMT_NIL))
src = "" tags=[tag], repeat=False)
dly = blocks.delay(gr.sizeof_short, DELAY)
snk = blocks.tag_debug(gr.sizeof_short, 'A')
top.connect(src, dly, snk)

--------------
 expected output:

Version v3.7.9.1-97-gc0381e0e


----------------------------------------------------------------------
Tag Debug: A
Input Stream: 00
  Offset: 6000  Source: n/a     Key: A   Value: 1
----------------------------------------------------------------------

________________________

Eugene Grayver, Ph.D.
Aerospace Corp., Sr. Eng. Spec.
Tel: 310.336.1274
________________________


reply via email to

[Prev in Thread] Current Thread [Next in Thread]