Main Content

Behavior when pregenerated library subsystem code is missing

Diagnostic behavior when model cannot use pregenerated library code or pregenerated library code is missing

Model Configuration Pane: Diagnostics

Description

This parameter specifies the diagnostic behavior 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 | none
warning

The 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/_sharedutils folder.

error

The software issues an error, and the code generator does not generate code.

none

The 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/_sharedutils folder.

Recommended Settings

ApplicationSetting
Debuggingerror or warning
TraceabilityNo impact
EfficiencyNo impact
Safety precautionerror

Programmatic Use

Parameter: PregeneratedLibrarygSubsystemCodeDiagnostic
Type: string | character vector
Values: 'none' | 'warning' | 'error'
Default: 'warning'

Version History

Introduced in R2019a