Real-Time Workshop User's Guide    

Singletasking

It is possible to execute the model code in a strictly singletasking manner. While this method is less efficient with regard to execution speed, in certain situations it may allow you to simplify your model.

In a singletasking environment, the base sample rate must define a time interval that is long enough to allow the execution of all blocks within that interval.

The following diagram illustrates the inefficiency inherent in singletasking execution.

Figure 7-4: Singletasking System Execution

Singletasking system execution requires a sample interval that is long enough to execute one step through the entire model.


 Building the Program for Multitasking Execution Building the Program for Singletasking Execution