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:
Subsystems with Function name options set to
User specified
Data objects described in hisl_0063: Length of user-defined object names to improve MISRA C:2012 compliance
Signal and parameter objects
Check Parameters
Use the Model Advisor Configuration Editor to define the scope of the analysis by specifying the input parameters.
Parameter | Description |
---|---|
Follow links | Verify and trace links within the Simulink model.
|
Look under masks | Specify whether to include masked model elements in the analysis.
|
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 |
---|---|
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
See Also
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