Using Simulink    

Displaying a Block

To determine which block in a model's diagram corresponds to a particular index, type bshow s:b at the command prompt, where s:b is the block index. The bshow command opens the system containing the block (if necessary) and selects the block in the system's window.

Displaying a Model's Nonvirtual Systems

The systems command prints a list of the nonvirtual systems in the model being debugged. For example, the Simulink clutch demo (clutch) contains the following systems.

Displaying a Model's Nonvirtual Blocks

The slist command displays a list of the nonvirtual blocks in a model. The listing groups the blocks by system. For example, the following sequence of commands produces a list of the nonvirtual blocks in the Van der Pol (vdp) demo model.

Displaying Blocks with Potential Zero-Crossings

The zclist prints a list of blocks in which nonsampled zero-crossings can occur during a simulation. For example, zclist prints the following list for the clutch sample model.

Displaying Algebraic Loops

The ashow command highlights a specified algebraic loop or the algebraic loop that contains a specified block. To highlight a specified algebraic loop, type ashow s#n, where s is the index of the system (see Displaying a Model's Block Execution Order) that contains the loop and n is the index of the loop in the system. To display the loop that contains the currently selected block, enter ashow gcb. To show a loop that contains a specified block, type ashow s:b, where s:b is the block's index. To clear algebraic-loop highlighting from the model diagram, enter ashow clear.

Displaying Debugger Status

In GUI mode, the debugger displays the settings of various debug options, such as conditional breakpoints, in its Status panel. In command-line mode, the status command displays debuggers settings. For example, the following sequence of commands displays the initial debug settings for the vdp model.


 Displaying a Model's Block Execution Order Debugger Command Reference