Using Simulink     Search    Help Desk 
Demux

Separate a vector signal into output signals.

Library

Signals & Systems

Description

The Demux block separates a vector input signal into output lines, each of which can carry a scalar or vector signal. Simulink determines the number and widths of the output signals by the Number of outputs parameter.

Scalar Number of Outputs

If the Number of outputs parameter field contains a scalar value, the block separates the input signal into that number of output signals. The widths of the output signals depend on the width of the input vector and the number of outputs:

Vector Number of Outputs

If the Number of outputs parameter is a vector, the number of output lines is equal to the number of elements in the vector. The output signal widths depend on the input vector width and the values of the elements of the parameter. You can explicitly size output signals or let Simulink determine their widths.

Simulink draws the specified number of output ports on the block, resizing the block if necessary. When the number of ports is increased or decreased, ports are added or removed from the bottom of the block icon.

Using a Variable to Provide the Number of Outputs Parameter

When you specify the Number of outputs parameter as a variable, Simulink issues an error message if the variable is undefined in the workspace.

Note
Simulink hides the name of a bus selector block when you copy it from the Simulink library to a model.

Data Type Support

A Demux block accepts and outputs signals of any numeric (complex or real) and data type.

Parameters and Dialog Box

Number of outputs
The number and width of outputs. The total of the output widths must match the width of the input line.



[ Previous | Help Desk | Next ]