| 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… |
|---|
In general, you must trade off simulation speed against flexibility when choosing either Accelerator mode or Rapid Accelerator mode instead of Normal mode.

Normal mode offers the greatest flexibility for making model adjustments and displaying results, but it runs the slowest. Rapid Accelerator mode runs the fastest, but this mode does not support the debugger or profiler, and works only with those models for which C code is available for all of the blocks in the model. Accelerator mode lies between these two in performance and in interaction with your model.
Note An exception to this rule occurs when you run multiple simulations, each of which executes in less than one second in Normal mode. For example: for i=1:100 sim(mdl); % executes in less than one second in Normal mode end For this set of conditions, you will typically obtain the best performance by simulating the model in Normal mode. |
The following table compares the characteristics of Normal mode, Accelerator mode, and Rapid Accelerator mode.
| If you want to... | Then use this mode... | ||
|---|---|---|---|
| Normal | Accelerator | Rapid Accelerator | |
| Performance | |||
| Run your model in a separate address space |
| ||
| Efficiently run batch and Monte Carlo simulations |
| ||
| Model Adjustment | |||
| Change model parameters such as solver type, stop time without rebuilding |
|
| |
| Change block tunable parameters such as gain |
|
|
|
| Model Requirement | |||
| Accelerate your model even if C code is not used for all blocks |
| ||
| Support M-file S-function blocks |
|
| |
| Permit algebraic loops in your model |
| ||
| Have your model work with the debugger or profiler |
|
| |
| Have your model include C++ code |
|
| |
| Data Display | |||
| Use scopes and signal viewers |
|
| See Using Scopes and Viewers with Rapid Accelerator Mode |
| Use scopes and signal viewers when running your model from the command line |
|
| |
Note Scopes and viewers do not update if you run your model from the command line in Rapid Accelerator mode. |
The following decision tree can help you select between Normal mode, Accelerator mode, or Rapid Accelerator mode.
See Comparing Performance to understand how effective the accelerator modes will be in improving the performance of your model.

![]() | Code Regeneration in Accelerated Models | Designing Your Model for Effective Acceleration | ![]() |

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