This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Troubleshoot Unsatisfactory Real-Time Performance

I want some recommended methods to improve unsatisfactory real-time application performance.

What This Issue Means

Run-time performance and reduce the task execution time (TET) of a model depend on model design, target computer capacity, and target computer utilization.

Try This Workaround

You can improve run-time performance and reduce the task execution time (TET) of a model with these methods.

Run Performance Tools

Use these performance tools:

Use a Multicore Target Computer

You can improve run-time performance by configuring your model to take advantage of your multicore target computer:

  1. Partition the model into subsystems according to the physical requirements of the system that you are modeling. Set the block sample rates within each subsystem to the slowest rate that meets the physical requirements of the system.

  2. In the Configuration Parameters dialog box, on the Solver pane, select the check box for Treat each discrete rate as a separate task.

  3. Select the Allow tasks to execute concurrently on target check box.

  4. Click Configure Tasks, and then select the Enable explicit model partitioning for concurrent behavior check box.

  5. Create tasks and triggers, and then explicitly assign subsystem partitions to the tasks. See Partition Your Model Using Explicit Partitioning (Simulink) and Multicore Programming with Simulink (Simulink).

  6. In Simulink Real-Time™ Explorer, on the Target settings pane, check that you selected the Multicore CPU check box.

  7. Run the real-time application.

Minimize the Model

You can improve run-time performance by minimizing your model to make more memory and CPU cycles available for the real-time application:

  1. If the model contains many states (for example, more than 20 states), clear the States check box in the Configuration Parameters dialog box, on the Data Import/Export pane. You have now disabled state logging, making more memory available for the real-time application.

  2. On the Data Import/Export pane, clear the Time, States, Output, Final states, and Signal logging parameters. You have now turned off data logging, making more CPU cycles available for calculating the model.

  3. On the Simulink Real-Time Options pane, clear the Monitor Task Execution Time check box. You have now disabled TET logging for the real-time application.

  4. On the Solver pane, increase Fixed-step size (fundamental sample time). Executing with a short sample time can overload the CPU.

  5. Use polling mode. See Polling Mode.

  6. In Simulink Real-Time Explorer, on the Target settings pane, clear the Graphics mode check box to disable the target scope display.

  7. Remove scopes from the model.

  8. Eliminate or minimize target computer disk I/O in your model.

  9. Reduce the number of I/O channels in the model.

Contact Technical Support

For additional guidance, refer to these sources:

For Speedgoat hardware issues, contact Speedgoat Tech Support:

 Read More

Related Topics

External Websites