Writing S-Functions Previous page   Next Page

Checking Array Bounds

If your S-function causes otherwise inexplicable errors, the reason might be that the S-function is writing beyond its assigned areas in memory. You can verify this possibility by enabling the Simulink array bounds checking feature. This feature detects any attempt by an S-Function block to write beyond the areas assigned to it for the following types of block data:

To enable array bounds checking, select warning or error from the Array bounds exceeded options list on the Diagnostics pane of the Configuration Parameters dialog box or enter the following command at the MATLAB command line.


Previous page  ssSetErrorStatus Termination Criteria S-Function Examples Next page

© 1994-2005 The MathWorks, Inc.