Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

Choosing a Simulation Mode

Tradeoffs

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.

Comparing Modes

The following table compares the characteristics of Normal mode, Accelerator mode, and Rapid Accelerator mode.

If you want to...Then use this mode...
NormalAcceleratorRapid 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  

Decision Tree

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.

  


Related Products & Applications

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