Enable memory integrity checks
Option to check for memory integrity violations for MATLAB Function blocks
Model Configuration Pane: Simulation Target
Description
The Enable memory integrity checks parameter specifies whether to check for memory integrity violations when building the simulation target for MATLAB Function and MATLAB System blocks. You can check for memory integrity violations in all simulation modes or only during simulations in normal and accelerator mode.
Settings
On for simulation (default) | Always on | OffOn for simulationChecks MATLAB® code in MATLAB Function and MATLAB System blocks for memory integrity violations in normal and accelerator mode simulations.
Always onChecks MATLAB code in MATLAB Function and MATLAB System blocks for all simulation modes, including rapid accelerator simulations.
OffDoes not check MATLAB code in MATLAB Function and MATLAB System blocks in normal, accelerator, or rapid accelerator simulations.
Caution
Memory integrity violations can result in unpredictable behavior. Set this parameter to
Offonly if you are sure that dimension and array bounds checking are not necessary for the MATLAB code for all MATLAB Function and MATLAB System blocks in your model.
Tips
The most likely cause of memory integrity issues is accessing an array out of bounds.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging |
|
| Traceability | No impact |
| Efficiency | No recommendation |
| Safety precaution |
|
Programmatic Use
Parameter: SimIntegrity |
| Type: string | character vector |
Values:
'on' | 'off'
|'alwaysOn' |
Default: 'on' |
Version History
Introduced in R2009b