WOLFRAM SYSTEM MODELER

SignalExtrema

Calculate min and max of a signal

Wolfram Language

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

Information

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

This block calculates the min and the max of the input signal u and stores the time at which the last min or max was reached in the variables t_min and t_max respectively.

Note:

The output is updated after each sample period defined by Ts. This means that:

  • The extrema will be approximate as it only return the extremas at the sampling points.
  • The sampling will generate many events which may slow down the simulation.

Parameters (1)

Ts

Type: Time (s)

Description: Sample time

Connectors (3)

u

Type: RealInput

Description: Connector of Real input signal

y_min

Type: RealOutput

Description: Min of input signal

y_max

Type: RealOutput

Description: Max of input signal

Used in Examples (1)

DemonstrateSignalExtrema

Modelica.Blocks.Examples

Test detection of signal extrema

Revisions

Version Date Author Comment
1.0.0 2021-02-25 dietmarw, tinrabuzin Initial version