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 Elements | System Composer Architecture Model Objects |
---|---|
|
|
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
, andint64
uint8
,uint16
,uint32
, anduint64
eps
,inf
,Inf
,infinity
,intmax
,intmin
,nan
,NaN
,Nil
,pi
,realmax
, andrealmin
Check Parameters
Use the Model Advisor Configuration Editor to define the scope of the analysis by specifying the input parameters.
Parameter | Description |
---|---|
Follow links | Specify whether Simulink analyzes content of library-linked blocks.
|
Look under masks | Specify whether Simulink analyzes content in masked subsystems.
|
Block naming standard | Check for block names that do not match the specified block naming standard.
|
Regular expression for prohibited block names | Specify a custom regular expression for standard block name compliance. The default regular expression is:
|
Signal naming standard | Check for signal names that do not match the specified signal naming standard.
|
Regular expression for prohibited signal names | Specify a custom regular expression for standard signal name compliance. The default regular expression is:
|
Parameter naming standard | Check for parameter names that do not match the specified parameter naming standard.
|
Regular expression for prohibited parameter names | Specify a custom regular expression for standard parameter name compliance. The default regular expression is:
|
Bus element naming standard | Check for bus element names that do not match the specified bus element naming standard.
|
Regular expression for prohibited bus element names | Specify a custom regular expression for standard bus element name compliance. The default regular expression is:
|
Stateflow object naming standard | Check for Stateflow object names that do not match the specified Stateflow object naming standard.
|
Regular expression for prohibited Stateflow object names | Specify a custom regular expression for standard Stateflow object name compliance. The default regular expression is:
|
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.
|
Regular expression for prohibitedSystem Composer object names | Specify a custom regular expression for standard System Composer object name compliance. The default regular expression is:
|
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 Condition | Recommended 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 R2017bSee Also
Reserved names | Reserved names (Simulink Coder)
Topics
- Check Your Model Using the Model Advisor
- Address Model Check Results
- Save and View Model Advisor Check Reports
- Improve Simulation Performance Using Performance Advisor
- Upgrade Models Using Upgrade Advisor
- Use Model Advisor Configuration Editor to Customize Model Advisor
- Exclude Blocks from Model Advisor Check Analysis
- Justify Model Advisor Violations from Check Analysis
- Check Model Compliance Using Edit-Time Checking
- Configure Model Element Names and Labels
- Reserved Keywords (Simulink Coder)