Stream Mux: 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...") |
(Fix typo) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Block Docs]] | [[Category:Block Docs]] | ||
Stream muxing block to multiplex many streams into one with a specified format. | |||
Muxes N streams together producing an output stream that contains N0 items from the first stream, N1 items from the second, etc. and repeats: | |||
[N0, N1, N2, ..., Nm, N0, N1, ...] | |||
== Parameters == | == Parameters == | ||
; | ; Lengths | ||
: A vector (list/tuple) specifying the number of items from each stream the mux together. Warning: this requires that at least as many items per stream are available or the system will wait indefinitely for the items. | |||
; | ; Num inputs | ||
: | : Number of input streams. | ||
== Example Flowgraph == | == Example Flowgraph == | ||
This flowgraph shows the Stream Mux block muxing 2 input streams into an output stream with <tt>lengths = [3, 2]</tt>. | |||
The block will take 3 items from the first stream, 2 items from the second stream, and repeat. Notice that tags are preserved. | |||
[[File:Stream_mux_demo_flowgraph.png|800px]] | |||
[[File:Stream_mux_demo_exec.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_mux_impl.cc] | ||
; Header files | ; Header files | ||
: [https://github.com/gnuradio/gnuradio | : [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/stream_mux_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_mux.h] | ||
; Block definition | ; Block definition | ||
: [https://github.com/gnuradio/gnuradio | : [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/grc/blocks_stream_mux.block.yml] |
Latest revision as of 14:59, 29 October 2020
Stream muxing block to multiplex many streams into one with a specified format.
Muxes N streams together producing an output stream that contains N0 items from the first stream, N1 items from the second, etc. and repeats:
[N0, N1, N2, ..., Nm, N0, N1, ...]
Parameters
- Lengths
- A vector (list/tuple) specifying the number of items from each stream the mux together. Warning: this requires that at least as many items per stream are available or the system will wait indefinitely for the items.
- Num inputs
- Number of input streams.
Example Flowgraph
This flowgraph shows the Stream Mux block muxing 2 input streams into an output stream with lengths = [3, 2].
The block will take 3 items from the first stream, 2 items from the second stream, and repeat. Notice that tags are preserved.
Source Files
- C++ files
- [1]
- Header files
- [2]
- Public header files
- [3]
- Block definition
- [4]