Behavior when pregenerated library subsystem code is missing

Description

When you generate code for a model that contains an instance of a reusable library subsystem with a function interface, specify whether or not to display a warning or an error when the model can not use pregenerated library code or pregeneratetd library code is missing.

Settings

Default: warning

none

If pregenerated library code is missing, Simulink® software does not display a warning or an error. 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.

warning

If pregenerated library code is missing, Simulink software displays 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

Simulink software displays an error message. The code generator does not generate code.

Tip

To use pregenerated library code, before generating code for the model, generate code for the library.

Command-Line Information

Parameter:PregeneratedLibrarySubsystemCodeDiagnostic
Value: 'none' | 'warning' | 'error'
Default: 'warning'

Recommended Settings

ApplicationSetting
Debuggingerror, warning
TraceabilityNo impact
EfficiencyNo impact
Safety precautionerror

Related Topics