Using Simulink Previous page   Next Page

Diagnosing Simulation Errors

If errors occur during a simulation, Simulink halts the simulation, opens the subsystems that caused the error (if necessary), and displays the errors in the Simulation Diagnostics Viewer. The following section explains how to use the viewer to determine the cause of the errors.

Simulation Diagnostics Viewer

The viewer comprises an Error Summary pane and an Error Message pane.

Error Summary Pane

The upper pane lists the errors that caused Simulink to terminate the simulation. The pane displays the following information for each error.

Message.   Message type (for example, block error, warning, log)

Source.   Name of the model element (for example, a block) that caused the error

Reported by.   Component that reported the error (for example, Simulink, Stateflow, Real-Time Workshop, etc.)

Summary.   Error message, abbreviated to fit in the column

You can remove any of these columns of information to make more room for the others. To remove a column, select the viewer's View menu and uncheck the corresponding item.

Error Message Pane

The lower pane initially contains the contents of the first error message listed in the top pane. You can display the contents of other messages by clicking their entries in the upper pane.

In addition to displaying the viewer, Simulink opens (if necessary) the subsystem that contains the first error source and highlights the source.

You can display the sources of other errors by clicking anywhere in the error message in the upper pane, by clicking the name of the error source in the error message (highlighted in blue), or by clicking the Open button on the viewer.

Changing Font Size

To change the size of the font used to display errors, select Font Size from the viewer's menu bar. A menu of font sizes appears. Select the desired font size from the menu.


Previous page  Model Referencing Pane Creating Custom Simulation Error Messages Next page

© 1994-2005 The MathWorks, Inc.