Main Content

Check for length of user-defined object names

mathworks.hism.hisl_0063

Dependencies: Simulink® Check™

Usage: High-Integrity System Modeling

Guideline: hisl_0063: Length of user-defined object names to improve MISRA C:2012 compliance

Description

This check inspects the length of the names of user-defined objects against the Maximum identifier length parameter in the model configuration.

This check inspects these user-defined objects:

Check Parameters

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

ParameterDescription

Follow links

Verify and trace links within the Simulink model.

on (default) | off

Look under masks

Specify whether to include masked model elements in the analysis.

all (default) | none | graphical | functional

  • all — Check analysis includes all masked model elements.

  • none — Check analysis excludes masked model elements.

  • graphical — Check analysis includes only the graphical masked model elements.

  • functional — Check analysis includes only the functional masked model elements.

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
Length of the function name in a subsystem is greater than the set threshold.Change the function name in the Subsystem blocks to have a length less than the set threshold.
Data object names have a length greater than threshold.Change the data object names to have a length less than the set threshold.
Signal or parameter names have lengths greater than threshold.Change the signal or parameter names to have lengths less than the set threshold.

Capabilities and Limitations

  • Does not flag the signals that do not resolve to objects

  • Analyzes only active variant choices

  • Performs model compilation

Version History

Introduced in R2018b