Main Content

Check safety-related diagnostic settings for model referencing

Check ID: mathworks.hism.hisl_0310

Check model configuration for diagnostic settings that apply to model referencing and that can impact safety.

Description

This check verifies that model diagnostic configuration parameters pertaining to model referencing are set optimally for generating code for a safety-related application.

Available with Simulink® Check™.

Results and Recommended Actions

ConditionRecommended Action
The diagnostic that detects port and parameter mismatches during model loading and updating is set to none or warning. If undetected, such mismatches can lead to incorrect simulation results because the parent and referenced models have different interfaces.Set Port and parameter mismatch on the Diagnostics > Model Referencing pane in the Configuration Parameters dialog box or set the parameter ModelReferenceIOMismatchMessage to error.
The diagnostic that detects whether To Workspace or Scope blocks are logging data in a referenced model is set to none or warning. Data logging is not supported for To Workspace and Scope blocks in referenced models. Set Unsupported data logging on the Diagnostics > Model Referencing pane in the Configuration Parameters dialog box or set the parameter ModelReferenceDataLoggingMessage to error.
To log data, remove the blocks and log the referenced model signals. For more information, see Override Signal Logging Settings with Signal Logging Selector.

Action Results

Clicking Modify Settings configures model diagnostic settings that apply to model referencing and that can impact safety.

Capabilities and Limitations

  • Does not run on library models.

  • Does not allow exclusions of blocks or charts.

Revision History

R2024a - Removed configuration parameter Invalid root Inport/Outport block connection (ModelReferenceIOMsg). To diagnose and fix invalid connections, use Model Advisor check Check for invalid root input and output port connections (ID: mathworks.hism.hisl_0079) instead.

See Also