Ramp model
Requirements.Examples.Uncertainty.Ramp
ยท source
A ramp against 'u <= 8' with +-1: the band is open from t = 7 s to t = 9 s, the verdict flips at 8 s
Extends Modelica.Icons.Example
The level rises from 0 to 10 in 10 s against the level shall be at most 8, with the level known to
±1: rhoLow = 8 − (u + 1), rhoHigh = 8 − (u − 1). The check is
certainly satisfied until t = 7 s (u + 1 ≤ 8), in band from 7 s to 9 s -- satisfied, then violated from 8 s,
the nominal crossing -- and certainly violated after 9 s (u − 1 > 8). The band, the verdict and the margin
(8 − t)/0.5, unchanged by the band, are asserted every 10 ms, between the events.
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 that is always true, so that the checks are active over the whole run |
during1 | Requirements.ChecksInFixedWindow.During | the level shall be at most 8, the level known to +-1, tolerance 0.5 |