Main Content

Check model before generating code

Description

Choose whether to run Code Generation Advisor checks before generating code.

Category: Code Generation

Settings

Default: Off

Off

Generates code without checking whether the model meets code generation objectives. The code generation report summary and file headers indicate the specified objectives and that the validation was not run.

On (proceed with warnings)

Checks whether the model meets code generation objectives using the Code Generation Objectives checks in the Code Generation Advisor. If the Code Generation Advisor reports a warning, the code generator continues producing code. The code generation report summary and file headers indicate the specified objectives and the validation result.

On (stop for warnings)

Checks whether the model meets code generation objectives using the Code Generation Objectives checks in the Code Generation Advisor. If the Code Generation Advisor reports a warning, the code generator does not continue producing code.

Command-Line Information

Parameter: CheckMdlBeforeBuild
Type: character vector
Value: 'Off' | 'Warning' | 'Error'
Default: 'Off'

Recommended Settings

ApplicationSetting
DebuggingOn (proceed with warnings) or On (stop for warnings)
TraceabilityOn (proceed with warnings) or On (stop for warnings)
EfficiencyOn (proceed with warnings) or On (stop for warnings)
Safety precautionOn (proceed with warnings) or On (stop for warnings)

Related Topics