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 | NoneNoneBuilds without displaying a diagnostic message.
WarningBuilds after displaying a warning message.
ErrorAborts build after displaying an error message.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | Warning or Error |
| Traceability | No impact |
| Efficiency | None |
| Safety precaution | No impact |
Programmatic Use
Parameter: MultiInstanceErrorCode |
| Type: character vector |
Value: 'None' | 'Warning' | 'Error' |
Default: 'Error' |
Version History
Introduced before R2006a
See Also
Topics
- Model Configuration Parameters: Code Generation Interface
- Configure Generated C Function Interface for Model Entry-Point Functions
- Generate Reentrant Code from Top Models
- Generate C++ Class Interface to Model or Subsystem Code
- Generate Subsystem Code as Separate Function and Files
- Generate Reentrant Code from Subsystems
- Generate Reentrant Code from Subsystems
- Generate Modular Function Code for Nonvirtual Subsystems (Embedded Coder)