Data definition filename
File to contain data definitions
Model Configuration Pane: Code Generation / Code Placement
Description
Specify the name of the file that is to contain data definitions.
Dependencies
This parameter is enabled by Data definition.
Settings
global.c (default) | C file nameDefault:  global.c
The code generator organizes and formats the data definitions in the specified file based on the data source template specified by the Source file (*.c) template parameter in the data section of the Code Generation pane: Templates tab.
You do not need to specify an extension for the file name. If you want to specify an extension, you must use a .c extension. In either case:
- If you select C as the target language, the code generator creates a file with a - .cextension.
- If you select C++ as the target language, the code generator creates a file with a - .cppextension.
Limitation
The code generator does not check for unique filenames. Specify filenames that do not collide with default filenames from code generation.
Recommended Settings
| Application | Setting | 
|---|---|
| Debugging | No impact | 
| Traceability | A valid file | 
| Efficiency | No impact | 
| Safety precaution | No impact | 
Programmatic Use
| Parameter: DataDefinitionFile | 
| Type: character vector | 
| Value: a valid file | 
| Default: 'global.c' | 
Version History
Introduced before R2006a