| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
| On this page… |
|---|
The Accelerator and Rapid Accelerator modes use portions of the Real-Time Workshop product to create an executable. These modes replace the interpreted code normally used in Simulink simulations, shortening model run time.
Although the acceleration modes use some Real-Time Workshop code generation technology, you do not need the Real-Time Workshop software installed to accelerate your model.
Note The code generated by the Accelerator and Rapid Accelerator modes is suitable only for speeding the simulation of your model. You must use the Real-Time Workshop product if you want to generate code for other purposes. |
In Normal mode, the MATLAB technical computing environment is the foundation on which the Simulink software is built.Simulink controls the solver and model methods used during simulation. Model methods include such things as computation of model outputs. Normal mode runs in one process.

The Accelerator mode generates and links code into a C-MEX S-function. Simulink uses this acceleration target code to perform the simulation, and the code remains available for use in later simulations.
Simulink checks that the acceleration target code is up to date before reusing it. As explained in Code Regeneration in Accelerated Models, the target code regenerates if it is not up to date.
In Accelerator mode, the model methods are separate from the Simulink software and are part of the Acceleration target code. A C-MEX S-function API communicates with the Simulink software, and a MEX API communicates with MATLAB. The target code executes in the same process as MATLAB and Simulink.

The Rapid Accelerator mode creates a Rapid Accelerator standalone executable from your model. This executable includes the solver and model methods, but it resides outside of MATLAB and Simulink. It uses External mode (see Communicating With Code Executing on a Target System Using Simulink External Mode) to communicate with Simulink.

MATLAB and Simulink run in one process, and if a second processing core is available, the standalone executable runs there.
![]() | What Is Acceleration? | Code Regeneration in Accelerated Models | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |