This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Dynamic Priority Scheduling of Functions

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

mdl = 'slexDynamicSchedulingExample';
curDir = pwd;

Closing the Models

close_system(mdl, 0);
Was this topic helpful?