WOLFRAM SYSTEM MODELER

ContinuousSignalExtrema

Store the minimum and maximum values of the input signal

Wolfram Language

In[1]:=
SystemModel["Modelica.Blocks.Math.ContinuousSignalExtrema"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

This block detects positive and negative peaks of differentiable and non-differentiable input signals without sampling.

For differentiable input signals, an extremum is detected if the derivative of the input signal is zero.

To handle non-differentiable input signals, the input signal u is conditioned by a first order with time constant T. Like in the derivative block, the derivative of the input signal is approximated by (u - x)/T. This way even steps with local extrema just before and after the step are taken into account.

Additionally, when the simulation terminates, y_min and y_max are updated.

Parameters (1)

T

Value: 1e-6

Type: Time (s)

Description: Derivative time constant

Outputs (2)

t_min

Type: Time (s)

Description: Time instant of last found minimum

t_max

Type: Time (s)

Description: Time instant of last found maximum

Connectors (3)

u

Type: RealInput

Description: 'input Real' as connector

y_min

Type: RealOutput

Description: 'output Real' as connector

y_max

Type: RealOutput

Description: 'output Real' as connector

Used in Examples (1)

DemonstrateContinuousSignalExtrema

Modelica.Blocks.Examples

Test the ContinuousSignalExtrema block