Main Content

Data declaration filename

File to contain deta declarations

Model Configuration Pane: Code Generation / Code Placement


Specify the name of the file that is to contain data declarations.


This parameter is enabled by Data declaration.


global.h (default) | header file name

Default: global.h

The code generator organizes and formats the data declarations in the specified file based on the data header template specified by the Header file (*.h) template parameter in the data section of the Code Generation pane: Templates tab.


The code generator does not check for unique filenames. Specify filenames that do not collide with default filenames from code generation.

Recommended Settings

DebuggingNo impact
TraceabilityA valid file
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: DataReferenceFile
Type: character vector
Value: a valid file
Default: 'global.h'

Version History

Introduced before R2006a