blockSignalExtrema

Calculate min and max of a signal

Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).

Information

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

TypeNameDefaultDescription
SI.TimeTsSample time

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputuConnector of Real input signal
Modelica.Blocks.Interfaces.RealOutputy_minMin of input signal
Modelica.Blocks.Interfaces.RealOutputy_maxMax of input signal

Components

TypeNameDefaultDescription
Realt_minSample time of last found minimum
Realt_maxSample time of last found maximum

Revisions

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