Specify rules for naming mpt
signals in generated code.
Category: Code Generation > Identifiers
Default:
None
None
Does not change signal names when creating corresponding identifiers in generated code. Signal identifiers in the generated code match the signal names that appear in the model.
Force upper case
Uses uppercase characters when creating identifiers for signal names in the generated code.
Force lower case
Uses lowercase characters when creating identifiers for signal names in the generated code.
Custom M-function
Uses the MATLAB® function specified with the M-function parameter to create identifiers for signal names in the generated code.
This parameter appears only for ERT-based targets.
This parameter requires an Embedded Coder® license when generating code.
Setting this parameter to Custom M-function
enables
M-function.
This parameter must be the same for top-level and referenced models.
If you give a value to the Identifier parameter of a
mpt.Signal
data object, that value overrides the specification of the
Signal naming parameter.
This parameter works only for mpt.Signal
data objects.
Parameter:
SignalNamingRule |
Type: character vector |
Value:
None | UpperCase |
LowerCase | Custom |
Default:
None |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | Force upper case |
Efficiency | No impact |
Safety precaution | No impact |