Main Content

Set Priority in Execution Order of Blocks

This example shows how setting the priority of blocks affects their execution order during a simulation. To set the block priority, right-click the block and select Properties. Confirm Execution Order is set to Based on priority. A smaller Priority value indicates a higher execution priority.

The model determines the block execution order at the start of the simulation. The block execution priority updates when you start the simulation. Double-click the green block to modify the priority levels for the blocks.

The triggered subsystems contain S-Functions that control the block color and slow simulation. The format attribute string displays the block priority level. To configure the string, use the block Properties dialog box.

See Also

|

Related Topics