Assert Dynamic Range

Purpose

Issue a warning or an error message when the input leaves the specified dynamic range

Library

Assertions

Description

../../_images/assertdynamicrange.svg

This block checks whether the middle input signal lies between the two other input signals. When the check fails, a message is added to the diagnostics window and the simulation may be paused or stopped.

Parameters

Limits

Either include or exclude, indicating whether the limits are included in or excluded from the allowed range.

Action

One of the following: ignore: the assertion is ignored; warning: when the assertion fails, a warning is added to the diagnostics window; warning/pause: when the assertion fails, a warning is added to the diagnostics window and the simulation is paused; error: when the assertion fails, an error is added to the diagnostics window and the simulation is stopped.

This parameter can be overwritten on a per model basis (see Simulation Parameters). Note that during analyses and simulation scripts, assertions may be partly disabled (see Assertions).

Message

The message that is displayed in the diagnostics window when the assertion fails.

Probe Signals

Input

The middle input signal.

Assertion value

1 while the input is within the range and 0 otherwise.

Upper limit

The upper limit input signal.

Lower limit

The lower limit input signal.