Using Simulink    
Saturation

Limit the range of a signal.

Library

Nonlinear

Description

The Saturation block imposes upper and lower bounds on 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 clipped to the upper or lower bound.

When the parameters are set to the same value, the block outputs that value.

Data Type Support

A Saturation block accepts and outputs real signals of any data type.

Parameters and Dialog Box

Upper limit
The upper bound on the input signal. While the signal is above this value, the block output is set to this value.
Lower limit
The lower bound on the input signal. While the signal is below this value, the block output is set to this value.

Characteristics

Direct Feedthrough
Yes
Sample Time
Inherited from driving block
Scalar Expansion
Of parameters and input
Dimensionalized
Yes
Zero Crossing
Yes, to detect when the signal reaches a limit, and when it leaves the limit


 Rounding Function Scope