modelMaxFrequency

Example for MaxFrequency (in every sliding time window, the mean frequency of check is limited)

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

Using check block MaxFrequency as

results in

simulation result

Note, the check signal has first a frequency of 2 Hz, then of 4 Hz, then of 2 Hz and finally of 0 Hz. The MaxFrequency block can reproduce these frequencies approximately. It is not exact, because the frequency is only determined based on the rising and falling edges of check. However, it is slightly more precise as using the MaxRisingFrequency block that takes only the rising edges of check into account.

Parameters

TypeNameDefaultDescription
RealpiModelica.Constants.pi

Components

TypeNameDefaultDescription
Modelica_Requirements.SignalAnalysis.CrossingMonitoringcrossing
Modelica_Requirements.ChecksInSlidingWindow.MaxFrequencymaxFrequency
Modelica_Requirements.Sources.RealExpressionexpr1