Assert Upper Limit
Purpose
Issue a warning or an error message when the input exceeds the specified upper limit
Library
Assertions
Description
This block checks whether the input signal lies below the specified upper limit. When the check fails, a message is added to the diagnostics window and the simulation may be paused or stopped.
Parameters
- Upper limit
A constant specifying the upper limit for the input signal.
- Limit
Either
includeorexclude, indicating whether the limit is 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
1while the input is below the upper limit and0otherwise.