What Is Acceleration?

Acceleration is a mode of operation in the Simulink® product that you can use to speed up the execution of your model. The Simulink software includes two modes of acceleration: Accelerator mode and the Rapid Accelerator mode. Both modes replace the normal interpreted code with compiled target code. Using compiled code speeds up simulation of many models, especially those where run time is long compared to the time associated with compilation and checking to see if the target is up to date.

The Accelerator mode works with any model, but performance decreases if a model contains blocks that do not support acceleration. The Accelerator mode supports the Simulink debugger and profiler. These tools assist in debugging and determining relative performance of various parts of your model. For more information, see Run Accelerator Mode with the Simulink Debugger and How Profiler Captures Performance Data.

The Rapid Accelerator mode works with only those models containing blocks that support code generation of a standalone executable. For this reason, Rapid Accelerator mode does not support the debugger or profiler. However, this mode generally results in faster execution than the Accelerator mode. When used with dual-core processors, the Rapid Accelerator mode runs Simulink and the MATLAB® technical computing environment from one core while the rapid accelerator target runs as a separate process on a second core.

For more information about the performance characteristics of the Accelerator and Rapid Accelerator modes, and how to measure the difference in performance, see Comparing Performance.

To optimize your model and achieve faster simulation automatically using Performance Advisor, see Automated Performance Optimization.

To manually employ modeling techniques that help achieve faster simulation, see Manual Performance Optimization.

Related Examples

More About

Was this topic helpful?