Extractor

Extracts a signal from an input signal vector, dependent on an input signal

 Description The Extractor component extracts a signal from the input vector, $u$. The integer input index specifies which signal to extract. When the input index is outside the range $1..{n}_{\mathbf{in}}$, if allowOutOfRange is true, the output is outOfRangeValue, otherwise it is zero.

Connections

 Name Description $\mathrm{index}$ integer input $u$ Real vector input signal connection $y$ Real output signal connection

Variables

 Symbol Units Description $\mathrm{index}$ - Integer input signal $u$ - Real input signal $y$ - Real output signal

Parameters

 Symbol Default Type Description Modelica ID $1$ Integer Number of inputs nin $\mathrm{allowOutOfRange}$ $\mathrm{false}$ Boolean index may be out of range allowOutOfRange outOfRangeValue 1e10 Real Output signal if index is out of range outOfRangeValue