Multi-instance code error diagnostic
Description
Select the severity level for diagnostics displayed when a model violates requirements for generating multi-instance code.
Category:Code Generation > Interface
Settings
Default:Error
-
None
-
Proceed with build without displaying a diagnostic message.
-
Warning
-
Proceed with build after displaying a warning message.
-
Error
-
Abort build after displaying an error message.
Under certain conditions, the software can:
Generate code that compiles but is not reentrant. For example, if a signal or DWork structure has a storage class other than
Auto
, global data structures are generated.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.
Dependencies
This parameter is enabled by setting parameterCode interface packagingtoReusable function
orC++ class
.
Command-Line Information
Parameter:MultiInstanceErrorCode |
Type:特征向量 |
Value:“没有” |'Warning' |'Error' |
Default:'Error' |
Recommended Settings
Application | Setting |
---|---|
Debugging | Warning orError |
Traceability | No impact |
Efficiency | None |
Safety precaution | No impact |
Related Topics
- Model Configuration Parameters: Code Generation Interface
- Configure Code Generation for Model Entry-Point Functions
- Generate Reentrant Code from Top Models
- Generate C++ Class Interface to Model or Subsystem Code
- Control Generation of Functions for Subsystems
- Generate Reentrant Code from Subsystems
- Generate Reentrant Code from Subsystems
- Generate Modular Function Code for Nonvirtual Subsystems(Embedded Coder)