Main Content

Generate full file banner

Include code generation information in file banner

Model Configuration Pane: Code Generation / Interface

Description

Specify whether to include additional code generation information in the header file banner.

Settings

on (default) | off

Default: on

On

Includes additional code generation information in the banner of the generated header file. The additional information includes:

  • Date and timestamp of code generation

  • Selected target for code generation

  • Selected hardware for code generation

  • Code generation objectives

  • Validation result

The banner also includes this basic information:

  • Name of the header file

  • Name of the model for which you generated code

  • Model version number

  • Simulink Coder version, release number, and release date

Off

Does not include code generation details in the generated header file banner. The banner still includes:

  • Name of the header file

  • Name of the model for which you generated code

  • Model version number

  • Simulink Coder version, release number, and release date

Examples

expand all

Compare the banner in the generated header file when you set Generate full file banner to different values. For this example, use the model rtwdemo_roll.

Here is the header file banner that generated using the default Generate full file banner value on:

/*
 * rtwdemo_roll.h
 *
 * Code generation for model "rtwdemo_roll".
 *
 * Model version              : 6.0
 * Simulink Coder version : 9.8 (R2022b) 13-May-2022
 * C source code generated on : Mon Jun 13 13:31:11 2022
 *
 * Target selection: ert.tlc
 * Embedded hardware selection: Intel->x86-64 (Windows64)
 * Code generation objectives:
 *    1. Execution efficiency
 *    2. Traceability
 *    3. Safety precaution
 *    4. RAM efficiency
 * Validation result: Not run
 */

Here is the header file banner that generated using the Generate full file banner value off:

/*
 * rtwdemo_roll.h
 *
 * Code generation for model "rtwdemo_roll".
 *
 * Model version              : 6.0
 * Simulink Coder version : 9.8 (R2022b) 13-May-2022
 *
 */

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: GenerateFullHeader
Type: character vector
Value: 'on' | 'off'
Default: 'on'

Version History

Introduced before R2006a

See Also

Topics