Main Content

Enable memory integrity checks

Description

Detects violations of memory integrity while building MATLAB Function blocks. Stops simulation with a diagnostic message.

Category:Simulation Target

Settings

Default: On for simulation

On for simulation

Detect violations of memory integrity while simulating MATLAB Function blocks in normal and accelerator modes. Stops simulation and displays a diagnostic message.

Off

Does not detect violations of memory integrity while building MATLAB Function blocks.

Always on

Detect violations of memory integrity while building MATLAB Function blocks for all simulation modes. Stops simulation and displays a diagnostic message.

Caution

Without these checks, violations result in unpredictable behavior.

Tips

  • The most likely cause of memory integrity issues is accessing an array out of bounds.

  • Disable these checks only if you are sure that all array bounds and dimension checking is unnecessary.

Command-Line Information

Parameter: SimIntegrity
Value: 'on' | 'off' |'alwaysOn'
Default: 'on'

Recommended Settings

ApplicationSetting
Debugging

On

Traceability

No impact

Efficiency

No recommendation

Safety precaution

Always on

Related Topics