Main Content

Check model file name

mathworks.hism.hisl_0031

Dependencies: Simulink® Check™

Usage: High-Integrity System Modeling

Guideline: hisl_0031: Model file names

Description

Use this check to determine whether the model filename complies with recommended guidelines.

Check Parameters

Use the Model Advisor Configuration Editor to define the scope of the analysis by specifying the input parameters.

ParameterDescription

Minimum length

Specify the minimum number of characters that can be in a model filename.

2 (default) | integer

Maximum length

Specify the maximum number of characters that can be in a model filename.

64 (default) | integer

Recommended Actions and Results

Review the violations that are flagged by the check and the recommended action for fixing the issue. After applying the changes, save the model and rerun the check analysis.

Modeling ConditionRecommended Action
Filename contains invalid characters.Rename the file, using valid characters. Valid characters are az, AZ, 0–9, and underscore (_).
Filename starts with a number.Remove the number at the start of the filename.
Filename starts with an underscore ("_").Remove the underscore (_) at the start of the filename.
Filename ends with an underscore ("_").Remove the underscore at the end of the filename.
File extension contains underscores.Remove the underscores from the file extension.
Filename contains consecutive underscores.Remove the underscores from the filename.
Filename contains multiple dots (.).Rename the file so that it contains at most one dot.
Filename is C, C++, or MATLAB keyword or name of built-in function.Rename the file.
Filename does not contain more than two and less than 64 characters.Rename the file so that it includes at least two and less than 64 valid characters.

Capabilities and Limitations

  • Runs on library models and System Composer™ models

  • Does not require model compilation

  • Does not analyze the content of library-linked blocks

  • Does not analyze the content in masked subsystems

Version History

Introduced in R2018b

expand all