blockMaxRising
In every sliding time window, the number of check rising edges is bounded
Extends from Interfaces.PartialCheckInSlidingWindowWithBooleanOutput (Interfaces and icon for check block that evaluates a property in a sliding time window and returns the result as Boolean).
Information
Syntax
nRisingLimited = MaxRising(check=..., window=..., nRisingMax=1).y;
Description
In any (sliding) time window of length window, the number or rising edges of the Boolean input check (= nRising) must be ≤ parameter nRisingMax. Whenever this property is fulfilled, Boolean output y = true, otherwise y = false.
y = nRising ≤ nRisingMax;
Example
The property is demonstrated with the following example calling the block as:
results in
![]() |
|
| simulation result |
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Time | window (from PartialCheckInSlidingWindowWithBooleanOutput) | Length of sliding time window (> 0) | |
| Integer | nRisingMax | 1 | Maximum number of check rising edges in a sliding time window |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.BooleanOutput | y (from PartialCheckInSlidingWindowWithBooleanOutput) | = true if property satisfied, otherwise false | |
| Modelica.Blocks.Interfaces.IntegerOutput | nRising | Number of check rising edges in the sliding time window |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | check (from PartialCheckInSlidingWindowWithBooleanOutput) | Boolean to check |
