Saturation
This block bounds upper and lower values of a signal. When the input signal is within the range specified by the Lower limit and Upper limit parameters, the input signal passes through unchanged. When the input signal is outside these bounds, the signal is set to the upper or lower bound. When the Lower limit and Upper limit parameters are set to the same value, the block outputs that value.
Library
Hybrid
Description
The Saturation block bounds upper and lower values of a signal. When the input signal is within the range specified by the Lower limit and Upper limit parameters, the input signal passes through unchanged.
When the input signal is outside these bounds, the signal is set to the upper or lower bound. When the Lower limit and Upper limit parameters are set to the same value, the block outputs that value.
The saturation block parameters specify the lower and upper bounds of the saturation function applied to the input signal. If a bound is applied on one side (upper or lower), the other bound can be set to infinity. So, a value of infinity as bound means no bound.
The input data type should be double.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
upper | Upper limit | Upper value to bound the signal. | Matrix | |
lower | Lower limit | Lower value to bound the signal. | Matrix | |
zc | Zero-crossing | Enables the detection of zero crossings. | Scalar | 0 |
externalActivation | External activation | Specifies whether the block receives an external activation or inherits its activation through its regular input ports. When External Activation is selected, an additional activation port is added to the block. By default, external activation is not selected. | Number | 0 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | input | 1 | |
Port 2 | explicit | output | 1 | |
Port 3 | activation | input | externalActivation |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | no | |
direct-feedthrough | yes | |
zero-crossing | yes | |
mode | no | |
continuous-time state | no | |
discrete-time state | no |