WhenRising model

Requirements.Examples.Uncertainty.WhenRising  ยท source

Icon of WhenRising

A ramp checked at the rising edges of a pulse, 'u <= 5.5' with +-1: the band sampled with the decision

Extends Modelica.Icons.Example

WhenRising decides at each rising edge of a pulse (0, 2, 4, 6, 8 s) whether the ramp u = t is at most 5.5, the level known to ±1. The band is sampled with the decision and kept with it: certainly satisfied at 0, 2 and 4 s (u + 1 ≤ 5.5), violated in band at 6 s (u − 1 = 5 ≤ 5.5), certainly violated at 8 s. Asserted one second after each of the decisive edges.

Copyright © 2026 Model Based Innovation LLC. All rights reserved.

Components and variables

NameTypeDescription
levelModelica.Blocks.Sources.Rampu = time on [0, 10]
pulseModelica.Blocks.Sources.BooleanPulserising edges at 0, 2, 4, 6, 8 s
whenRising1Requirements.ChecksInFixedWindow.WhenRisingat each rising edge the level shall be at most 5.5, known to +-1