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.

    Saturation

Library

Activate/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

Saturation_0

NameLabelDescriptionData TypeValid 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
1

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
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

1

Port 2

explicit

output

1

Port 3

activation

input

externalActivation

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

yes

zero-crossing

yes

mode

no

continuous-time state

no

discrete-time state

no