Stream Mux: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
No edit summary
(Fix typo)
 
(3 intermediate revisions by the same user not shown)
Line 15: Line 15:
== Example Flowgraph ==
== Example Flowgraph ==


Insert description of flowgraph here, then show a screenshot of the flowgraph and the output if there is an interesting GUI.  Currently we have no standard method of uploading the actual flowgraph to the wiki or git repo, unfortunately. The plan is to have an example flowgraph showing how the block might be used, for every block, and the flowgraphs will live in the git repo.
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 ==

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.


Stream mux demo flowgraph.png

Stream mux demo exec.png

Source Files

C++ files
[1]
Header files
[2]
Public header files
[3]
Block definition
[4]