During model

Requirements.Examples.Elementary.Margin.During  ยท source

Icon of During

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

NameTypeDescription
levelModelica.Blocks.Sources.Rampu = time on [0, 10]
alwaysRequirements.Sources.BooleanConstantCondition, always true
during1Requirements.ChecksInFixedWindow.Duringthe level shall be below 8, tolerance 0.5