Main Content

bshow

Highlight block in model with specified block ID during simulation debugging session

Description

bshow blk selects and highlights in the block diagram the block in the top model that corresponds to the block ID blk.

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.

bshow mdl blk selects and highlights in the block diagram the block in the referenced model mdl that corresponds to the block ID blkID.

Input Arguments

collapse all

Block to show, specified as a debugging session block ID. The debugging session block ID has the form (t)s:b, where t is the index of the task that contains the block, s is the index of the system that contains the block, and b is the index of the block within the system that contains it.

For a list of block IDs in a model, use the slist function.

Name of referenced model that contains block, 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.

Version History

Introduced before R2006a

expand all