Stream to Tagged Stream: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Category:Block Docs Category:Stub Docs This is the template for the "Page-per-block Docs". This first section should describe what the block...") |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
[[Category:Block Docs]] | [[Category:Block Docs]] | ||
Converts a regular stream into a tagged stream. | |||
All this block does is add length tags in regular intervals. It can be used to connect a regular stream to a gr::tagged_stream_block. | |||
This block is meant to be connected directly to a tagged stream block. If there are blocks between this block and a tagged stream block, make sure they either don't change the rate, or modify the tag value to make sure the length tags actually represent the packet length. | |||
== Parameters == | == Parameters == | ||
(''R''): <span class="plainlinks">[https://wiki.gnuradio.org/index.php/GNURadioCompanion#Variable_Controls ''Run-time adjustable'']</span> | (''R''): <span class="plainlinks">[https://wiki.gnuradio.org/index.php/GNURadioCompanion#Variable_Controls ''Run-time adjustable'']</span> | ||
; | ; Packet length (''R'') | ||
: | : Number of items per tagged stream packet. One tag is written every Packet length items and contains that number. | ||
; | ; Length Tag Key | ||
: | : Key of the length tag. | ||
== Example Flowgraph == | == Example Flowgraph == | ||
This flowgraph can be found at [https://github.com/gnuradio/gnuradio/blob/master/gr-fec/examples/fecapi_polar_encoders.grc] | |||
[[File:Fecapi_polar_encoders_fg.png|800px]] | |||
== Source Files == | == Source Files == | ||
; C++ files | ; C++ files | ||
: [https://github.com/gnuradio/gnuradio | : [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/stream_to_tagged_stream_impl.cc] | ||
; Header files | ; Header files | ||
: [https://github.com/gnuradio/gnuradio | : [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/stream_to_tagged_stream_impl.h] | ||
; Public header files | ; Public header files | ||
: [https://github.com/gnuradio/gnuradio | : [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/include/gnuradio/blocks/stream_to_tagged_stream.h] | ||
; Block definition | ; Block definition | ||
: [https://github.com/gnuradio/gnuradio | : [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/grc/blocks_stream_to_tagged_stream.block.yml] |
Latest revision as of 15:11, 7 December 2020
Converts a regular stream into a tagged stream.
All this block does is add length tags in regular intervals. It can be used to connect a regular stream to a gr::tagged_stream_block.
This block is meant to be connected directly to a tagged stream block. If there are blocks between this block and a tagged stream block, make sure they either don't change the rate, or modify the tag value to make sure the length tags actually represent the packet length.
Parameters
(R): Run-time adjustable
- Packet length (R)
- Number of items per tagged stream packet. One tag is written every Packet length items and contains that number.
- Length Tag Key
- Key of the length tag.
Example Flowgraph
This flowgraph can be found at [1]
Source Files
- C++ files
- [2]
- Header files
- [3]
- Public header files
- [4]
- Block definition
- [5]