Real-Time Workshop    

Models with Multiple Sample Rates


This section discusses how and why real-time execution of code generated from models having multiple sample rates differs from the simulation behavior of the models. Solutions to problems arising from multirate model execution are also described. The topics covered are:
Introduction
Describes types of sample times and issues to consider regarding execution of multirate models
Singletasking vs. Multitasking Environments
Discusses how Real-Time Workshop handles execution of multirate systems, in both multitasking and pseudo-multitasking environments
Sample Rate Transitions
Shows how to handle transitions between blocks with unequal sample rates using Rate Transition blocks
Singletasking and Multitasking Execution of a Model: an Example
Discusses how an example model executes in both singletasking and multitasking solver modes, with timing diagrams



  Embedded Program Framework Introduction