This example shows a common modeling pattern to dynamically schedule the execution of functions using a Stateflow chart.
Simulink Messages provides intrinsic support for creating and managing priority queues which may be used to model the 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 on the 'Sequence Viewer' block 2. Click the 'Run' button once