Main Content

Multi-instance code error diagnostic

Severity level of diagnostics for when model violates requirements for generating multi-instance code

Model Configuration Pane: Code Generation / Interface

Description

The Multi-instance code error diagnostic parameter specifies the severity level for diagnostics that the code generator displays when a model violates requirements for generating multi-instance code.

Under certain conditions, the code generator can:

  • Produce code that compiles but is not reentrant. For example, if a signal or DWork structure has a storage class other than Auto, the code generator produces global data structures.

  • Be unable to generate valid and compilable code. For example, if the model contains an S-function that is not code-reuse compliant or a subsystem triggered by a wide function-call trigger, the code generator produces invalid code, displays an error message, and terminates the build.

Dependency

To enable this parameter, set the Code interface packaging parameter to Reusable function or C++ class.

Settings

Error (default) | Warning | None
None

Builds without displaying a diagnostic message.

Warning

Builds after displaying a warning message.

Error

Aborts build after displaying an error message.

Recommended Settings

ApplicationSetting
DebuggingWarning or Error
TraceabilityNo impact
EfficiencyNone
Safety precautionNo impact

Programmatic Use

Parameter: MultiInstanceErrorCode
Type: character vector
Value: 'None' | 'Warning' | 'Error'
Default: 'Error'

Version History

Introduced before R2006a