packageChecksInSlidingWindow

Library of check blocks that inspect a property in a sliding time window

Extends from Modelica.Icons.Package (Icon for standard packages).

Information

This library provides blocks that check properties in a sliding time window. Blocks performing checks in fixed windows defined by a Boolean condition variable are provided in sublibrary ChecksInFixedWindow.

All blocks of this library have the following interface:

  • Boolean input check is a Boolean expression that must be true according to the property check of the particular block.
  • Real input window is the length of the sliding time window in seconds. A check is performed conceptually in every interval [time-window, time].
  • Property output y is of enumeration type Property. If the check is successful, y = Property.Satisfied. If the check fails, y = Property.Violated. If neither of the two properties hold (for example when condition = false), y = Property.Undecided.
    If Property.Undecided cannot occur, output y is a Boolean instead of a Property.

Contents

NameDescription
MinDurationIn every sliding time window, the longest time duration where check was permanently true must be above a lower limit
MinAccumulatedDurationIn every sliding time window, the accumulated time duration where check was true must be above a lower limit
MinAccumulatedDuration2In every sliding time window, the accumulated time duration where check was true must be above a lower limit (same as MinAccumulationDuration but with Boolean instead of Property output)
MaxDurationIn every sliding time window, the longest time duration where check was permanently true must be below an upper limit
MaxAccumulatedDurationIn every sliding time window, the accumulated time duration where check was true must be below an upper limit
BandDurationIn every sliding time window, the longest time duration where check was permanently true must be within a given band
BandAccumulatedDurationIn every sliding time window, the accumulated time duration where check was true must be within a given band
MinRisingIn every sliding time window, a minimum number of check rising edges must occur
MaxRisingIn every sliding time window, the number of check rising edges is bounded
BandRisingIn every sliding time window, a minimum number of check rising edges must occur and the number of check rising edges is bounded
MaxFrequencyIn every sliding time window, the mean frequency of check is limited
MaxRisingFrequencyIn every sliding time window, the mean frequency of the check rising edges is limited
MaxIncreaseIn every sliding time window, the increase of the input is limited
MaxPercentageIncreaseIn every sliding time window, the percentage increase of the input is limited