| Using Simulink | ![]() |
Assigning Block Priorities
You can assign priorities to nonvirtual blocks or virtual subsystem blocks in a model (see Virtual Blocks). Higher priority blocks appear before lower priority blocks in the sorted order, though not necessarily before blocks that have no assigned priority.
You can assign block priorities interactively or programmatically. To set priorities programmatically, use the command
where b is a block path and n is any valid integer. (Negative numbers and 0 are valid priority values.) The lower the number, the higher the priority; that is, 2 is higher priority than 3. To set a block's priority interactively, enter the priority in the Priority field of the block's Block Properties dialog box (see Block Properties Dialog Box).
Simulink honors the block priorities that you specify only if they are consistent with the Simulink block sorting algorithm. If Simulink is unable to honor a block priority, it displays a Block Priority Violation diagnostic message (see The Diagnostics Pane).
| Displaying the Sorted Order | Lookup Table Editor | ![]() |
© 1994-2005 The MathWorks, Inc.