RisingFrequency model

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

Icon of RisingFrequency

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

NameTypeDescription
pi constantRealCircle constant

Components and variables

NameTypeDescription
expr1Requirements.Sources.RealExpressionSine at 2 Hz
crossingRequirements.SignalAnalysis.CrossingMonitoringTrue while expr1 is above zero: rising edges at 2 Hz
alwaysRequirements.Sources.BooleanConstantCondition, always true
maxFrequency1Requirements.ChecksInFixedWindow.MaxRisingFrequencyThe rising edges of crossing.y may occur with at most 3 Hz