Specify customized name for generated data files.
Category: Code Generation > Code Placement
Default:
$R_data
Enter a macro that specifies whether, and in what order, certain text is to be included in the generated identifier. The macro can include a combination of custom user text and these format tokens:
Token | Description |
---|---|
$R |
Insert root model name into identifier,
replacing unsupported characters with the
underscore ( Required for model referencing. |
$U | Insert text that you specify for the
|
Custom naming is supported only for .c
and
.cpp
files. When you have model
hierarchy, custom naming is applicable to only the root
model.
This parameter:
Appears only for ERT-based targets.
Requires Embedded Coder® when generating code.
Compact (with separate data
file)
option for File
packaging format enables this
parameter.
Parameter:
ERTDataFileRootName |
Type: character vector |
Value: Valid combination of tokens and custom text |
Default:
$R_data |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | Use default |
Efficiency | No impact |
Safety precaution | No recommendation |