Introduction
Simulink models run at one or more sample times. The Simulink product
provides considerable flexibility in building multirate systems, that
is, systems with more than one sample time. However, this same flexibility
also allows you to construct models for which the code generator cannot
generate correct real-time code for execution in a multitasking environment.
To make multirate models operate correctly in real time (that is,
to give the right answers), you sometimes must modify your model or
instruct the Simulink engine to modify the model for you. In
general, the modifications involve placing Rate Transition blocks
between blocks that have unequal sample times. The following sections
discuss issues you must address to use a multirate model successfully
in a multitasking environment. For a comprehensive discussion of sample
times, including rate transitions, see Working with Sample Times in
the Simulink User's Guide.
 | Scheduling Considerations | | Single-Tasking and Multitasking Execution Modes |  |
Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
Get this Simulink Kit