Variable Limiter - MapleSim Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : MapleSim : MapleSim Component Library : Signal Blocks : Discontinuous : componentLibrary/signalBlocks/discontinuous/VariableLimiter

Variable Limiter

Limit the range of a signal with variable limits

 Description The Variable Limiter block passes each input signal as output so long as the input is within the upper and lower limits specified by the two additional inputs $\mathrm{limit1}$ and $\mathrm{limit2}$. If this is not the case, the corresponding limit is passed as output. The Signal Size parameter assigns the dimension of the input and output connectors.
 Equations $\mathrm{uMax}=\left\{\begin{array}{cc}\mathrm{noEvent}\left(\mathrm{max}\left(\mathrm{limit1},\mathrm{limit2}\right)\right)& \mathrm{strict}\\ \mathrm{max}\left(\mathrm{limit1},\mathrm{limit2}\right)& \mathrm{otherwise}\end{array}$ $\mathrm{uMin}=\left\{\begin{array}{cc}\mathrm{noEvent}\left(\mathrm{min}\left(\mathrm{limit1},\mathrm{limit2}\right)\right)& \mathrm{strict}\\ \mathrm{min}\left(\mathrm{limit1},\mathrm{limit2}\right)& \mathrm{otherwise}\end{array}$ ${y}_{i}=\left\{\begin{array}{cc}\mathrm{uMax}& \mathrm{uMax}<{u}_{i}\\ \mathrm{uMin}& {u}_{i}<\mathrm{uMin}\\ {u}_{i}& \mathrm{otherwise}\end{array}$

Connections

 Name Description Modelica ID $u$ Real input vector u $y$ Real output vector y $\mathrm{limit1}$ Real input signal used as maximum for each input limit1 $\mathrm{limit2}$ Real input signal used as minimum for each input limit2

Parameters

 Name Default Units Description Modelica ID Signal Size $1$ Dimension of input and output vectors signalSize $\mathrm{strict}$ $\mathrm{false}$ True (checked) means use noEvent; otherwise events are generated at limits strict limits at initial $\mathrm{true}$ True (checked) means limits are checked during initialization limitsAtInit

 See Also

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam