Dynamic Priority Scheduling of Functions
This example shows a common modeling pattern to dynamically schedule the execution of functions using a Stateflow® chart.
Overview
Simulink® messages provide intrinsic support for creating and managing priority queues, which may be used to model a situation in which the execution order of the functions may change between execution intervals.
Additionally, the Sequence Viewer allows you to visualize execution sequences. To view the dynamically changing execution sequence: 1. Double-click the 'Sequence Viewer' block 2. Click the 'Run' button once