Extractor - MapleSim Help

Extractor

Extract signal from vector

 Description The Extractor component extracts a signal from an input vector based on an input index. If the $\mathrm{index}$ input is out of range, then the output is 0 unless the parameter Allow Out of Range is true, then the output is the value of the Out of Range parameter.
 Equations $y=\left\{\begin{array}{cc}{u}_{\mathrm{index}}& 0<\mathrm{index}\le {n}_{\mathrm{in}}\\ \mathrm{Out of Range Value}& \mathrm{Allow Out of Range Value}\\ 0& \mathrm{otherwise}\end{array}$

Connections

 Name Description Modelica ID $u$ Real input vector u $y$ Real output signal y $\mathrm{index}$ Integer input index

Parameters

 Name Default Units Description Modelica ID ${n}_{\mathrm{in}}$ $1$ Number of inputs nin Allow Out Of Range $\mathrm{false}$ See description allowOutOfRange Out Of Range Value $1·{10}^{10}$ Output value if index is out of range outOfRangeValue

 Modelica Standard Library The component described in this topic is from the Modelica Standard Library. To view the original documentation, which includes author and copyright information, click here.