Documentation

Diagnostics

Configure diagnostic checks, diagnose simulation errors, analyze simulations using model verification blocks

Simulink® provides many diagnostic checks, that can produce errors or warnings when certain conditions are detected during simulation. You can customize what conditions the software checks, and whether those conditions produce errors or warnings.

You can also add Model Verification blocks to your model, to check the condition of specific signals.

Blocks

Assertion Check whether signal is zero
Check Discrete Gradient Check that absolute value of difference between successive samples of discrete signal is less than upper bound
Check Dynamic Gap Check that gap of possibly varying width occurs in range of signal's amplitudes
Check Dynamic Lower Bound Check that one signal is always less than another signal
Check Dynamic Range Check that signal falls inside range of amplitudes that varies from time step to time step
Check Dynamic Upper Bound Check that one signal is always greater than another signal
Check Input Resolution Check that input signal has specified resolution
Check Static Gap Check that gap exists in signal's range of amplitudes
Check Static Lower Bound Check that signal is greater than (or optionally equal to) static lower bound
Check Static Range Check that signal falls inside fixed range of amplitudes
Check Static Upper Bound Check that signal is less than (or optionally equal to) static upper bound

Functions

sldiagnostics Display diagnostic information about Simulink system
Simulink.BlockDiagram.getChecksum Return checksum of model
Simulink.SubSystem.getChecksum Return checksum of nonvirtual subsystem
modeladvisor Open Model Advisor
sldebug Start simulation in debug mode
addterms Add terminators to unconnected ports in model

Related Information

Was this topic helpful?