Signal naming
Specify rules for naming Simulink.Signal and
mpt.Signal objects in generated code
Model Configuration Pane: Code Generation / Identifiers
Description
Specify rules for naming Simulink.Signal and mpt.Signal
data objects in generated code.
Dependencies
This parameter appears only for ERT-based targets.
This parameter requires an Embedded Coder® license when generating code.
Setting this parameter to
Custom M-functionenables 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.Signaldata object, that value overrides the specification of the Signal naming parameter.
Settings
None (default) | Force upper case | Force lower case | Custom M-functionNoneDoes 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 caseUses uppercase characters when creating identifiers for signal names in the generated code.
Force lower caseUses lowercase characters when creating identifiers for signal names in the generated code.
Custom M-functionUses the MATLAB® function specified with the M-function parameter to create identifiers for signal names in the generated code.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | Force upper case |
| Efficiency | No impact |
| Safety precaution | No impact |
Programmatic Use
Parameter: SignalNamingRule |
| Type: character vector |
Value: None | UpperCase | LowerCase | Custom |
Default: None |
Version History
Introduced before R2006a