Behavior when pregenerated library subsystem code is missing
Diagnostic action to take when model cannot use pregenerated library code or pregenerated library code is missing
Model Configuration Pane: Diagnostics
Description
The Behavior when pregenerated library subsystem code is missing parameter specifies the diagnostic action to take when a model cannot use pregenerated library code or pregenerated library code is missing. This parameter applies when you generate code for a model that contains an instance of a reusable library subsystem that has a function interface.
To use pregenerated library code, generate code for the library before generating code for the model.
Dependencies
To enable this parameter, on the Code Generation pane, set
System target file (Simulink Coder) to
ert.tlc or another TLC file that is derived from
ert.tlc.
Settings
warning (default) | error | nonewarningThe software issues a warning.
The code generator generates code for a reusable library subsystem that does not contain function interfaces. The generated code for the reusable library subsystem is in the
slprj/target/_sharedutilsfolder.errorThe software issues an error, and the code generator does not generate code.
noneThe software does not issue a diagnostic.
The code generator generates code for a reusable library subsystem that does not contain function interfaces. The generated code for the reusable library subsystem is in the
slprj/target/_sharedutilsfolder.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | error or warning |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | error |
Programmatic Use
Parameter:
PregeneratedLibrarySubsystemCodeDiagnostic |
| Type: string | character vector |
Values:
"none" | "warning" |
"error" |
Default:
"warning" |
Version History
Introduced in R2019a
See Also
System target file (Simulink Coder)
Topics
- Library-Based Code Generation for Reusable Library Subsystems (Embedded Coder)