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
| Off
On for simulation
Checks MATLAB® code in MATLAB Function and MATLAB System blocks for memory integrity violations in normal and accelerator mode simulations.
Always on
Checks MATLAB code in MATLAB Function and MATLAB System blocks for all simulation modes, including rapid accelerator simulations.
Off
Does 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
Off
only 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