VariableLimiter
Limit the range of a signal with variable limits
Library
Blocks/Nonlinear
Description
The Limiter block passes its input signal as output signal as long as the input is within the upper and lower limits specified by the two additional inputs limit1 and limit2. If this is not the case, the corresponding limit is passed as output.
The parameter homotopyType
in the Advanced tab specifies the
simplified behaviour if homotopy-based initialization is used:
NoHomotopy
: the actual expression with limits is usedLinear
: a linear behaviour y = u is assumed (default option)Fixed
: it is assumed that the output is fixed at the valueySimplified
If it is known a priori in which region the input signal will be located, this option can help a lot by removing one strong nonlinearity from the initialization problem.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_homotopyType | homotopyType | Simplified model for homotopy-based initialization | Structure | |
mo_homotopyType/choice1 | Simplified model = actual model | Number | 0 | |
mo_homotopyType/choice2 | Simplified model: y = u | Number | 0 | |
mo_homotopyType/choice3 | Simplified model: y = ySimplified | Number | 0 |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_strict | strict | = true, if strict limits with noEvent(..) | Scalar | true |
mo_ySimplified | ySimplified | Fixed value of output in simplified model | Scalar |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_limitsAtInit | limitsAtInit | Has no longer an effect and is only kept for backwards compatibility (the implementation uses now the homotopy operator) | Scalar | true |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_u | u | u | Structure | |
mo_u/fixed | fixed | Cell of scalars | true | |
mo_u/start | start | Cell of scalars | ||
mo_y | y | y | Structure | |
mo_y/fixed | fixed | Cell of scalars | true | |
mo_y/start | start | Cell of scalars | ||
mo_limit1 | limit1 | limit1 | Structure | |
mo_limit1/fixed | fixed | Cell of scalars | true | |
mo_limit1/start | start | Cell of scalars | ||
mo_limit2 | limit2 | limit2 | Structure | |
mo_limit2/fixed | fixed | Cell of scalars | true | |
mo_limit2/start | start | Cell of scalars |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
u | implicit | Connector of Real input signal | input | 1 |
y | implicit | Connector of Real output signal | output | 1 |
limit1 | implicit | Connector of Real input signal used as maximum of input u | input | 2 |
limit2 | implicit | Connector of Real input signal used as minimum of input u | input | 3 |