Main Content

Create Mux Signal and Extract Elements

This example shows how to create a mux signal and extract elements from the mux signal.

Open and simulate the example model, which creates a mux signal that contains three signals and extracts those signals using Demux and Selector blocks.

The Signal Dimensions information overlay displays the number of signals that the mux signal contains.

The Nonscalar Signals information overlay displays mux signals with thicker lines than scalar signals.

The Demux block extracts the elements of the mux signal in the order that the Mux block receives them.

The Selector block extracts the elements of the mux signal based on the specified Index in the dialog box. Because mux signals are vectors that provide index-based access to their elements, the Selector block uses Index vector (dialog) for the Index Option.

See Also

|

Related Topics