| Using Simulink | ![]() |
Displaying Information About the Model
In addition to providing information about a simulation, the debugger can provide you with information about the model that underlies the simulation.
Displaying a Model's Sorted Lists
In GUI mode, the debugger's Sorted List pane displays lists of blocks for a model's root system and each nonvirtual subsystem. Each list lists the blocks that the subsystems contains sorted according to their computational dependencies, alphabetical order, and other block sorting rules. In command-line mode, you can use the slist command to display a model's sorted lists.
---- Sorted list for 'vdp' [12 blocks, 9 nonvirtual blocks, directFeed=0] 0:0 'vdp/Integrator1' (Integrator) 0:1 'vdp/Out1' (Outport) 0:2 'vdp/Integrator2' (Integrator) 0:3 'vdp/Out2' (Outport) 0:4 'vdp/Fcn' (Fcn) 0:5 'vdp/Product' (Product) 0:6 'vdp/Mu' (Gain) 0:7 'vdp/Scope' (Scope) 0:8 'vdp/Sum' (Sum)
These displays include the block index for each command. You can thus use them to determine the block IDs of the model's blocks. Some debugger commands accept block IDs as arguments.
Identifying Blocks in Algebraic Loops
If a block belongs to an algebraic list, the slist command displays an algebraic loop identifier in the entry for the block in the sorted list. The identifier has the form
where s is the index of the subsystem containing the algebraic loop and n is the index of the algebraic loop in the subsystem. For example, the following entry for an Integrator block indicates that it participates in the first algebraic loop at the root level of the model.
You can use the debugger's ashow command to highlight the blocks and lines that make up an algebraic loop. See Displaying Algebraic Loops for more information.
| Displaying Integration Information | Displaying a Block | ![]() |
© 1994-2005 The MathWorks, Inc.