Check length of bus and enumeration data type names
Check ID:
mathworks.jmaab_v6.jc_0901
Guideline: jc_0901: Length restriction for Data Type definition
Description
Checks if the lengths of bus object names, bus element names, enumeration class names, and enumeration member names adhere to the minimum and maximum length restrictions specified by the input parameters.
The default minimum length is 1. The default maximum length is 63.
This check applies to the following target components defined in the base workspace, the model workspace, or the data dictionary:
Bus data type names
Enumeration data type names
This check requires a Simulink® Check™ license.
Check Parameterization
This check does not include sub-checks because the JMAAB modeling guideline provides only one sub ID.
For reference, the guideline sub ID(s) that are recommended for use by the JMAAB modeling standards organizations are:
JMAAB — a
You can configure the following input parameters to customize the check action:
Input Parameter | Value | Default Value |
---|---|---|
Minimum length of Bus data name | Minimum length for a bus data type | 1 |
Maximum length of Bus data name | Maximum length for a bus data type | 63 |
Minimum length of Enumeration data name | Minimum length for an enumeration data type | 1 |
Maximum length of Enumeration data name | Maximum length for an enumeration data type | 63 |
Results and Recommended Actions
Condition | Recommended Action |
---|---|
Bus object names or bus element names in the model do not adhere to the minimum length restriction. | Modify bus object names or bus element names so that their lengths are not less than the value specified by the Minimum length of Bus data name input parameter. |
Bus object names or bus element names in the model do not adhere to the maximum length restriction. | Modify bus object names or bus element names so that their lengths are not more than the value specified by the Maximum length of Bus data name input parameter. |
Enumeration class names or enumeration member names do not adhere to the minimum length restriction. | Modify enumeration class names or enumeration member names so that their lengths are not less than the value specified by the Minimum length of Enumeration data name input parameter. |
Enumeration class names or enumeration member names do not adhere to the maximum length restriction. | Modify enumeration class names or enumeration member names so that their lengths are not more than the value specified by the Maximum length of Enumeration data name input parameter. |
Capabilities and Limitations
Analyzes content in masked subsystems.
Analyzes content of library-linked blocks.
Does not support exclusions of blocks or charts for bus object data type names.
Does not run on library models.