Main Content

Check model object names

mathworks.hism.hisl_0032

Dependencies: Simulink® Check™

Usage: High-Integrity System Modeling

Guideline: hisl_0032: Model element names

Description

This check verifies that names of Simulink component model elements and System Composer™ architecture model objects comply with your modeling guidelines or the high-integrity modeling guidelines.

Simulink Component Model ElementsSystem Composer Architecture Model Objects
  • Blocks

  • Signals

  • Parameters

  • Buses

  • Stateflow® objects

  • Components

  • Ports

  • Connectors

  • Interfaces

  • Stereotypes

The check also verifies that element and object names are not these reserved names:

  • MATLAB® keywords

  • C and C++ reserved keywords as listed in Reserved Keywords (Simulink Coder)

  • int8, int16, int32, and int64

  • uint8, uint16, uint32, and uint64

  • eps, inf, Inf, infinity, intmax, intmin, nan, NaN, Nil, pi, realmax, and realmin

Check Parameters

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

ParameterDescription

Follow links

Specify whether Simulink analyzes content of library-linked blocks.

on (default) | off

Look under masks

Specify whether Simulink analyzes content in masked subsystems.

all (default) | none | graphical | functional

Block naming standard

Check for block names that do not match the specified block naming standard.

on (default) | off

Regular expression for prohibited block names

Specify a custom regular expression for standard block name compliance. The default regular expression is:

(^.{32,}$)|([^a-zA-Z_0-9])|(^\d)|(^ )|(__)|(^_)|(_$) (default)

Signal naming standard

Check for signal names that do not match the specified signal naming standard.

on (default) | off

Regular expression for prohibited signal names

Specify a custom regular expression for standard signal name compliance. The default regular expression is:

(^.{32,}$)|([^a-zA-Z_0-9])|(^\d)|(^ )|(__)|(^_)|(_$) (default)

Parameter naming standard

Check for parameter names that do not match the specified parameter naming standard.

on (default) | off

Regular expression for prohibited parameter names

Specify a custom regular expression for standard parameter name compliance. The default regular expression is:

(^.{32,}$)|([^a-zA-Z_0-9])|(^\d)|(^ )|(__)|(^_)|(_$) (default)

Bus element naming standard

Check for bus element names that do not match the specified bus element naming standard.

on (default) | off

Regular expression for prohibited bus element names

Specify a custom regular expression for standard bus element name compliance. The default regular expression is:

(^.{32,}$)|([^a-zA-Z_0-9])|(^\d)|(^ )|(__)|(^_)|(_$) (default)

Stateflow object naming standard

Check for Stateflow object names that do not match the specified Stateflow object naming standard.

on (default) | off

Regular expression for prohibited Stateflow object names

Specify a custom regular expression for standard Stateflow object name compliance. The default regular expression is:

(^.{32,}$)|([^a-zA-Z_0-9])|(^\d)|(^ )|(__)|(^_)|(_$) (default)

System Composer object naming standard

Check for System Composer object names that do not match the specified System Composer object naming standard. This parameter applies to all System Composer architecture model objects.

on (default) | off

Regular expression for prohibitedSystem Composer object names

Specify a custom regular expression for standard System Composer object name compliance. The default regular expression is:

(^.{32,}$)|([^a-zA-Z_0-9])|(^\d)|(^ )|(__)|(^_)|(_$) (default)

The default custom regular expression (^.{32,}$)|([^a-zA-Z_0-9])|(^\d)|(^ )|(__)|(^_)|(_$) verifies that model element and object names are valid regular expressions (see regexp).

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
Model element or object names do not comply with naming standard specified in the input parameters.Update model element and object names to comply with your guidelines or the high-integrity guidelines.

Capabilities and Limitations

  • Does not run on library models

  • Allows exclusions of blocks and charts

  • Analyzes only active variant choices

  • Performs model compilation

Tips

In some cases, the Model Advisor reports an issue in subchecks of this check.

Version History

Introduced in R2017b

expand all