2.5

2.5 | 2 ratings Rate this file 0 Downloads (last 30 days) File Size: 11.67 KB File ID: #4428

Using the Simulink Debugger (Example 2)

by Dan Lluch

 

02 Feb 2004 (Updated 23 Jun 2010)

Explores using the Simulink Debugger to extract information.

| Watch this File

File Information
Description

The MathWorks receives many questions relating to Simulink state ordering, state initialization, and Simulink solver performance. Many times customers are not aware of existing capabilities that are available and will solve their current issues.

There are 3 MATLAB central submissions (all separate downloads!) that have been used with multiple customers to show current capabilities.

Example 1 : Explores how Simulink defines its states and what you can do once you know that definition.

Example 2 : Explores using the Simulink Debugger to extract information
from a simulink diagram or simulation run.

Example 3 : Explores how to leverage the 'Structure with Time' Simulink data format to alleviate ordering and index issues on inputs/outputs/states.

This script file will show the following:
1) Leverage the Simulink Debugger to interrogate information on simulation execution in a batched manner (usually done interactively).
2) Use Simulink Debugger to specifically access failed step information when using variable step solvers, specifically identifying the limiting state causing the failure.
3) Parse Debugger information to replace with Simulink's state definition or user defined state definition.

Required Products Simulink
MATLAB release MATLAB 7.10 (2010a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
22 Jan 2009 Chiao-Ting Li  
03 Dec 2009 Wojtek Przystas  
03 Dec 2009 Wojtek Przystas

Interesting example.
Do you know how to attach a set of Simulink Debugger commands to an already running Debugger?
or how to control it using a Matlab script?

Please login to add a comment or rating.
Updates
23 Jun 2010

updated ZIP file for R2010a

Tag Activity for this File
Tag Applied By Date/Time
simulink Dan Lluch 22 Oct 2008 07:13:43
debugger Dan Lluch 22 Oct 2008 07:13:43
solver Dan Lluch 22 Oct 2008 07:13:43
variable Dan Lluch 22 Oct 2008 07:13:43
step Dan Lluch 22 Oct 2008 07:13:43
failed Dan Lluch 22 Oct 2008 07:13:43
algebraic Dan Lluch 22 Oct 2008 07:13:43
loop Dan Lluch 22 Oct 2008 07:13:43

Contact us at files@mathworks.com