hisl_0032: Model element names
R2026bNaming conventions for model elements that produce valid identifiers in generated code
Usage: High-Integrity System Modeling
Guideline ID: hisl_0032
Rules
| hisl_0032: Model element names |
|---|
For these types of model elements:
And, these types of architecture model objects:
Use:
Do not:
Rationale The code generator might remove or mangle invalid characters when producing an identifier in generated code. Verification Check model object names (Simulink Check) Example — Correct
Example — Incorrect
|
Tips
Reserved names:
MATLAB® keywords
Reserved keywords for C, C++, and code generation. For complete list, see Reserved Keywords (Simulink Coder).
int8,uint8int16,uint16int32,uint32int64,uint64inf,InfNaN,nanepsintmin,intmaxrealmin,realmaxpiinfinityNil
The MATLAB limit for the number of characters you can use in model element names is 2048.
Industry Standards
MISRA C:2012, Rule 5.1
MISRA C:2023, Rule 5.1
MISRA C:2012, Rule 21.2
MISRA C:2023, Rule 21.2
ISO 26262-6, Table 1 (1h) 'Use of naming conventions'
DO-331, Section MB.6.3.2.e – 'Low-level requirements conform to standards'
DO-331, MB.6.3.3.e 'Software architecture conforms to standards'
DCL37-C. Do not declare or define a reserved identifier