Documentation

Improve Run-Time Performance

You can improve run-time performance and reduce the task execution time (TET) of a model by using the following procedures.

Run Performance Tools

Use the following performance tools:

Use Multicore Target Computer

If you are using a single-core target computer, improve performance by configuring your model to run on a multicore target computer:

  1. Acquire a multicore target machine (see www.speedgoat.com/products).

  2. 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.

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

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

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

  6. Create tasks and triggers, and then explicitly assign subsystem partitions to the tasks (see Partition Your Model Using Explicit Partitioning (Simulink)).

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

  8. Run the real-time application on the multicore target machine.

Minimize Model

  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 the following sources:

For Speedgoat hardware issues, contact Speedgoat Tech Support: www.speedgoat.com/support.

If these sources do not solve your issue, contact MathWorks Technical Support. See Find Simulink Real-Time Support.

Related Topics

External Websites

Was this topic helpful?