Perform a baseline analysis of the model. This step helps you identify initial bottlenecks in the execution of the original model. This topic assumes that you have configured your model for concurrent execution, but have not yet defined tasks for your model (Configure Your Model). Simulink® can perform a sample time analysis of your model and create system tasks for you.
In the Concurrent Execution dialog box, click the System tasks node.
In the System tasks pane, click the Autogenerate tasks and mapping button .
Simulink updates the model block diagram and performs a sample time analysis. For each sample time, the software creates a system task. When done, Simulink:
Creates one periodic system task (DiscreteN) for each periodic sample time in the model
Creates one aperiodic system trigger (AsynchronousN) for each function-call input in the model
Configures the block-to-task mapping so that each block maps to a system task based on sample time analysis
Updates the System tasks pane with a table of the system tasks
Customize and save these new tasks.
To customize system tasks (for example, name them, make platform-specific changes, and so forth), or save them, convert them to user tasks by right-clicking the system task or trigger and clicking Convert to editable ....
The software performs a sample time analysis on the model as it currently exists.
If the software reports a diagnostic during the update phase that prevents the analysis from completing, address the modeling issues before continuing.
When the analysis is complete, decide on your next step.