The Task Manager block can replay the execution timing of a task recorded from either a previous simulation of that task or from the execution of a task on a processor in an SoC device. To replay a task timing data file, use the following procedure:
In a Simulink® model, open the Task Duration block dialog box.
Select a task from the list of available tasks.
In the Simulation tab, select Play back recorded task diagnostics file.
Click Browse to select a
file from a
previous task simulation.
While using the data file for the task timing information, the Task Manager still manages individual tasks according the scheduling of the system and can be preempted by other higher priority tasks in the model. For more information on task priority and preemption, see Task Priority and Preemption.