blockFixedRising
Extends from Modelica_Requirements.Interfaces.PartialCheck (Interfaces and icon for check block).
Information
Syntax
property = FixedRising(condition=..., check=..., nRising=1).y;
Description
In every duration where the Boolean input condition is true, a number of nRising edges of the Boolean input check must occur. The default for nRising=1 (so exactly 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 < nRising. If condition is true and the number of rising edges == nRising, output y = Satisfied. If the number of rising edges > nRising or the number of rising edges ≠ nRising at the end of a true condition phase, 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
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nRising | 1 | Number of required check rising edges |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.BooleanInput | condition (from PartialCheck) | Boolean input condition signal | |
| Modelica_Requirements.Interfaces.PropertyOutput | y (from PartialCheck) | Property output signal |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | check (from PartialCheck) | Boolean to check |
