During model
Requirements.Examples.Elementary.Margin.During
ยท source
A ramp against a threshold: During's margin is (8 - u)/scale in closed form
Extends Modelica.Icons.Example
The level rises from 0 to 10 in 10 s against the level shall be below 8 with a tolerance of 0.5:
During(check = u < 8, rho = 8 − u, scale = 0.5). The margin is (8 − t)/0.5
at every instant, asserted in closed form; it crosses zero at t = 8 s together with the property, and the
worst value is −4 at the end: violated by four tolerances. The sign invariant (satisfied ⇔ margin ≥ 0)
is asserted continuously.
Copyright © 2026 Model Based Innovation LLC. All rights reserved.
Components and variables
| Name | Type | Description |
|---|---|---|
level | Modelica.Blocks.Sources.Ramp | u = time on [0, 10] |
always | Requirements.Sources.BooleanConstant | Condition, always true |
during1 | Requirements.ChecksInFixedWindow.During | the level shall be below 8, tolerance 0.5 |