Check port block names
Guideline: jc_0211: Usable characters for Inport blocks and Outport block
Checks if Inport and Outport block names adhere to the following guideline standards.
Do not begin with a number.
Do not begin or end with an underscore.
Do not contain consecutive underscores.
Do not coincide with reserved MATLAB® words.
Contain only alphanumeric characters and underscores.
Reserved MATLAB words include the following:
This check requires a Simulink® Check™ license.
This check contains sub-checks that correspond to sub IDs specified in the MAB and JMAAB modeling guidelines. You can use the Model Advisor Configuration Editor to specify which sub IDs (one or multiple) to execute.
For reference, the MAB guideline sub ID(s) that are recommended for use by the NA-MAAB and JMAAB modeling standards organizations are:
NA-MAAB — a, b, c, d, e, f
JMAAB — a, b, c, d, e, f
Results and Recommended Actions
|Guideline Sub ID||Condition||Recommended Action|
|jc_0211_a: Characters allowed for port block names||One or more port blocks have invalid names.||Use only alphanumeric characters and underscores in port block names.|
|jc_0211_b: Number at the beginning||One or more port block names begin with a number.||Use alphabetic characters at the beginning of port block names.|
|jc_0211_c: Underscore at the beginning||One or more port block names begin with an underscore.||Use alphabetic characters at the beginning of port block names.|
|jc_0211_d: Underscore at the end||One or more port block names end with an underscore.||Do not end port block names with underscores.|
|jc_0211_e: Consecutive underscores||One or more port block names have consecutive underscores.||Do not use consecutive underscores in port block names.|
|jc_0211_f: Single reserved MATLAB word||The port block name is a reserved MATLAB word.||Do not use reserved MATLAB words as port block names.|
Capabilities and Limitations
Runs on library models.
Analyzes content of library-linked blocks. By default, the input parameter Follow links is set to
Analyzes content in masked subsystems. By default, the input parameter Look under masks is set to
Supports exclusions of blocks or charts.
This check is supported by edit-time checking.