blockMinRising

In every true condition phase, a minimum number of check rising edges must occur

Extends from Modelica_Requirements.Interfaces.PartialCheck (Interfaces and icon for check block).

Information

Syntax

property = MinRising(condition=..., check=..., nRisingMin=1).y;

Description

In every duration where the Boolean input condition is true, a minimum number of nRisingMin edges of the Boolean input check must occur. The default for nRisingMin=1 (so at least one rising edge). Property output y is initialized to Undecided. When condition becomes true (so entering a duration), property output y = Undecided, as long as the number of rising edges < nRisingMin. If condition is true and the number of rising edges ≥ nRisingMin, output y = Satisfied. If at the end of a true condition phase the number of rising edges in this phase < nRisingMin, y = Violated.

Violated, Undecided, and Satisfied are elements of enumeration Property.

Example

This block is demonstrated with the following example:

results in

simulation result

Parameters

TypeNameDefaultDescription
IntegernRisingMin1Minimum number of check rising edges

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanInputcondition (from PartialCheck)Boolean input condition signal
Modelica_Requirements.Interfaces.PropertyOutputy (from PartialCheck)Property output signal

Components

TypeNameDefaultDescription
Booleancheck (from PartialCheck)Boolean to check