Main Content

elist

Display execution order in simulation debugging session

Description

elist m:mid displays the list of methods invoked by the method with the method ID mid in the order in which they execute.

You can use this function in a simulation debugging session started:

  • Interactively, using the Simulink® Toolstrip

  • Programmatically, using the sldebug function

  • Programmatically, using the sim function with the 'debug' name-value argument

Note

This function is available only for simulation debugging sessions started programmatically and for interactive simulation debugging sessions while paused within a time step.

elist sys mthName tid:t displays the list of methods invoked by the method mthName of the specified system sys that executes as part of the task with the task ID t.

elist blk mthName tid:t displays the list of methods invoked by the method mthName of block blk that executes as part of the task with task ID t.

elist mdlName blk mthName tid:t displays the list of methods invoked by the method mthName of block blk in referenced model mdlName that executes as part of the task with task ID t.

Input Arguments

collapse all

Method, specified as a positive integer.

System, specified as one of these options:

  • s:sysIdx — System with the system index sysIdx

  • gcs — Current system

Method name, specified as a string or a character vector.

Task ID, specified as a positive integer.

Block, specified using one of these options:

  • (t)s:b — Block ID, where t is the task ID for the task in which the block executes, s is the system index for the system that contains the block, and b is the index of the block within the system

  • gcb — Current block

Name of referenced model, specified as a string or a character vector.

Tips

  • To start a simulation debugging session interactively, add one or more breakpoints to your model, and in the Breakpoints List, check that Pause within time step is selected. When the simulation pauses on a breakpoint, some of the programmatic debugging commands, such as the stop command, are available for use in the MATLAB® Command Window.

  • You can view the execution order for the output methods of blocks in a model using the Execution Order viewer. Using the Execution Order viewer, you can also annotate the block diagram with the execution order for the model. For more information, see Control and Display Execution Order.

Version History

Introduced before R2006a

expand all