Specify the name of the file that is to contain data definitions.
Category: Code Generation > Code Placement
Default: 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 .c
extension.
If you select C++ as the target language, the code
generator creates a file with a .cpp
extension.
Limitation
The code generator does not check for unique filenames. Specify filenames that do not collide with default filenames from code generation.
This parameter is enabled by Data definition.
Parameter: DataDefinitionFile |
Type: character vector |
Value: a valid file |
Default: 'global.c' |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | A valid file |
Efficiency | No impact |
Safety precaution | No impact |