RisingFrequency model
Requirements.Examples.Elementary.Margin.RisingFrequency
ยท source
A 2 Hz edge train against MaxRisingFrequency(3 Hz): the margin is 1 Hz once the frequency is known
Extends Modelica.Icons.Example
The upward zero crossings of a 2 Hz sine (every 0.5 s from t = 0.5 s) against
MaxRisingFrequency(freqHzMax = 3): the block's freqHz is 0 until the second rising edge
at t = 1 s (margin 3, the whole limit) and 2 Hz from then on (margin 1, asserted to 1e-4: the edges are located
by the solver). Satisfied throughout with one Hz of headroom.
Copyright © 2026 Model Based Innovation LLC. All rights reserved.
Parameters
| Name | Type | Description |
|---|---|---|
pi constant | Real | Circle constant |
Components and variables
| Name | Type | Description |
|---|---|---|
expr1 | Requirements.Sources.RealExpression | Sine at 2 Hz |
crossing | Requirements.SignalAnalysis.CrossingMonitoring | True while expr1 is above zero: rising edges at 2 Hz |
always | Requirements.Sources.BooleanConstant | Condition, always true |
maxFrequency1 | Requirements.ChecksInFixedWindow.MaxRisingFrequency | The rising edges of crossing.y may occur with at most 3 Hz |