主要内容

hisl_0031: Model file names

R2026b

Use naming conventions for model file names

Usage: High-Integrity System Modeling

Guideline ID: hisl_0031

Rules

hisl_0031: Model file names

For model file names:

  • Use these characters: a-z, A-Z, 0-9, and the underscore (_).

  • Use strings that are more than 2 and less than 64 characters. (Not including the dot and file extension).

Do not:

  • Start the name with a number.

  • Use underscores at the beginning or end of a string.

  • Use more than one consecutive underscore.

  • Use underscores in file extensions.

  • Use reserved identifiers.

Rationale

  • Readability

  • Compiler limitations

  • Model-to-generated code traceability

Verification

Check model file name (Simulink Check)

Example — Correct

  • My_model.slx

Example — Incorrect

  • _My__model.slx

  • 2018_01_11_model.slx

  • New.slx

Tips

  • The MATLAB limit for the number of characters you can use in model file names is 2048.

Industry Standards

  • 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

Version History

Introduced in R2016a

expand all