ChecksInFixedWindow package

Requirements.ChecksInFixedWindow  ยท source

Icon of ChecksInFixedWindow

Library of check blocks (if the condition input is true, a property must hold)

Extends Modelica.Icons.Package

This library provides blocks that check properties in fixed windows defined by the true value of Boolean input variable condition. Whenever this variable is true, the check is performed. Blocks performing checks in a sliding time window are provided in sublibrary ChecksInSlidingWindow.

All blocks of this library have the following interface:

  • Boolean input condition. If true, the check is performed. Typically, condition is the output of a time locator from library TimeLocators.
  • Boolean input check is a Boolean expression that must be true according to the property check of the particular block. The blocks WithinBand, GreaterEqual and StableSignal (ported from the Modelica Buildings_Requirements library in version 0.13.0) form check from their Real inputs instead, and apply it only delayTime after each rising edge of condition.
  • 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 yet inside a true condition phase (a duration not yet reached, a count still below its minimum), y = Property.Undecided. While condition = false, and before the first true condition phase, y = Property.Undefined: the check is not applicable (before version 0.8.0 this was Undecided too; the two are distinguished so that a combination of checks and a requirement over a set of components can leave the inapplicable ones out, see Property). A block that decides at the end of a condition phase (the duration and count checks) keeps that verdict on y after the phase, until the next phase starts.

Contents

NameKindDescription
DuringblockIn every true condition phase, check must be true
MinDurationblockIn every true condition phase, check must be true for at least the defined duration
MaxDurationblockIn every true condition phase, check must be true for at most the defined duration
BandDurationblockIn every true condition phase, check must be true for at least a minimum duration and at most a maximum duration
NoRisingblockIn every true condition phase, no rising edge of check is allowed
FixedRisingblockIn every true condition phase, a defined number of check rising edges must occur
MinRisingblockIn every true condition phase, a minimum number of check rising edges must occur
MaxRisingblockIn every true condition phase, the number of check rising edges must be bounded
BandRisingblockIn every true condition phase, a minimum number of check rising edges must occur and the number of check rising edges is bounded
MaxRisingFrequencyblockIn every true condition phase, the frequency of the check rising edges is limited
WhenRisingblockWhen condition input has a rising edge, check must be true
WhenFallingblockWhen condition input has a falling edge, check must be true
WhenChangingblockWhen condition input has a changing edge, check must be true
WithinDomainmodelIn every true condition phase, point input must be within the domain defined by a polygon
StepResponseCheckblockOne step-response metric of u after a step of r, bounded: Property and margin
WithinBandblockIn every true condition phase (after an optional delay), the Real input must stay within a lower and an upper limit
GreaterEqualblockIn every true condition phase (after an optional delay), Real input u_max must be greater than or equal to Real input u_min
StableSignalblockIn every true condition phase (after an optional delay), the moving average of the input's rate of change must stay at or below a limit
RegionFractionblockIn every true condition phase, the weighted fraction of n places where a check holds must stay within a lower and an upper limit