slist
Sorted list of model blocks
Syntax
slist
sli
Description
slist
displays a list of blocks for the root system and
each nonvirtual subsystem sorted according to data dependencies and other
criteria.
For each system (root or nonvirtual), slist
displays:
Title line specifying the name of the system, the number of nonvirtual blocks that the system contains, and the number of blocks in the system that have direct feedthrough ports.
Entry for each block in the order in which the blocks appear in the sorted list.
For each block entry, slist
displays the block ID and the
name and type of the block. The block ID consists of a system index and a
block index separated by a colon (sysIdx:blkIdx
).
Block index is the position of the block in the sorted list.
System index is the order in which the Simulink® software generated the system sorted list. The system index has no special significance. It simply allows blocks that appear in the same position in different sorted lists to have unique identifiers.
Simulink software uses sorted lists to create block method execution
lists (see elist
) for root
system and nonvirtual subsystem methods. In general, root system and
nonvirtual subsystem methods invoke the block methods in the same order as
the blocks appear in the sorted list.
Exceptions occur in the execution order of block methods. For example, execution lists for multicast models group together all blocks operating at the same rate and in the same task. Slower groups appear later than faster groups. The grouping of methods by task can result in a block method execution order that is different from the block sorted order. However, within groups, methods execute in the same order as the corresponding blocks appear in the sorted list.
sli
is the short form of the command.
Examples
Display a sorted list of the root system in the vdp
model using the Simulink
debugger.
In the MATLAB Command Window, enter:
sldebug 'vdp'
The MATLAB command prompt >> changes to the Simulink debugger prompt (sldebug @0): >>.
Enter:
slist
When
'Signal storage reuse'
in the Configuration Parameters is enabled, block I/O values displayed in the debugger may not be correct. In order to preserve block output signal values, disable'Signal storage reuse'
in the Configuration Parameters dialog box. The MATLAB Command Window displays:---- Sorted list for 'vdp' [11 nonvirtual block(s), directFeed=0] Total number of tasks = 2 - Sorted list of task index [0], 10 nonvirtual block(s) (0)0:1 'vdp/x1' (Integrator) Input ports: [0] Output ports: [0] (0)0:2 'vdp/Out1' (Outport) Input ports: [0] Output ports: [] (0)0:3 'vdp/x2' (Integrator) Input ports: [0] Output ports: [0] (0)0:4 'vdp/Out2' (Outport) Input ports: [0] Output ports: [] (0)0:5 'vdp/Scope' (Scope) Input ports: [0] Output ports: [] (0)0:6 'vdp/Square' (Math) Input ports: [0] Output ports: [0] (0)0:7 'vdp/Sum1' (Sum) Input ports: [0 1] Output ports: [0] (0)0:8 'vdp/Product' (Product) Input ports: [0 1] Output ports: [0] (0)0:9 'vdp/Mu' (Gain) Input ports: [0] Output ports: [0] (0)0:10 'vdp/Sum' (Sum) Input ports: [0 1] Output ports: [0] ----- Task Index Legend ----- Task Index [0]: Cont -----------------------------
Version History
Introduced before R2006a