|On this page…|
To get the best performance when accelerating your models:
|On this pane...||Set...||To...|
|Solver Diagnostics||Solver data inconsistency||none|
|Data Validity Diagnostics||Array bounds exceeded||none|
|Optimization||Signal storage reuse||selected|
Disable Stateflow® debugging and animation.
Inline user-written S-functions (these are TLC files that direct the Simulink® Coder™ software to create C code for the S-function). See Control S-Function Executionfor a discussion on how the Accelerator mode and Rapid Accelerator mode work with inlined S-functions.
For information on how to inline S-functions, consult Insert S-Function Code.
When logging large amounts of data (for instance, when using the Workspace I/O, To Workspace, To File, or Scope blocks), use decimation or limit the output to display only the last part of the simulation.
Customize the code generation process to improve simulation speed. For details, see Customize the Build Process.
On computers running the Microsoft® Windows® operating system, the Accelerator and Rapid Accelerator modes use the default 64-bit C compiler supplied by MathWorks® to compile your model. If you have a C compiler installed on your PC, you can configure the mex command to use it instead. You might choose to do this if your C compiler produces highly optimized code since this would further improve acceleration.