Documentation

Check Model Compliance

Verify model compliance with safety standards and guidelines

You can use model metric APIs and the Model Advisor to check a model or subsystem for adherence to safety-standards and modeling guidelines. Start with Check for Compliance in Model and Subsystems.

Classes

Advisor.Application Run Model Advisor across model hierarchy
Advisor.Manager Manage applications
slmetric.Engine Collect metric data on models
slmetric.metric.Result Metrics for specified model component and metric algorithm
slmetric.metric.ResultCollection Metric data for specified model metric

Functions

slmetric.metric.getAvailableMetrics Obtain available metrics

Examples and How To

Limit Model Checks

You can limit the scope of a Model Advisor model or subsystem analysis.

Limit Model Checks By Excluding Gain and Outport Blocks

This example shows how to exclude a Gain block and all Outport blocks from a Model Advisor check during a Model Advisor analysis.

Generate Model Advisor Reports in Adobe PDF and Microsoft Word Formats

Configure the Model Advisor to generate reports in additional formats.

Run Checks for Model Metrics

To help assess model size, complexity, and readability, use the Model Advisor to run model metrics checks.

Collect Model Metrics Programmatically

This example shows how to use the metric APIs to programmatically collect subsystem and block count metrics for a model.

Create Model Metric for Nonvirtual Block Count

This example shows how to use the metric APIs to create a metric for counting nonvirtual blocks in a model.

Concepts

Check for Compliance in Model and Subsystems

Use the Model Advisor to check that a model or subsystem complies with modeling guidelines or standards.

Model Checks for DO-178C/DO-331 Standard Compliance

Use the Model Advisor to check that a model or subsystem complies with parts of the DO-178C safety standard.

Model Checks for IEC 61508, IEC 62304, ISO 26262, and EN 50128 Standard Compliance

Use the Model Advisor to check that a model or subsystem complies with parts of the IEC 61508, IEC 62304, ISO 26262, and EN 50128 safety standards.

Model Checks for MathWorks Automotive Advisory Board (MAAB) Guideline Compliance

Use the Model Advisor to check that a model or subsystem complies with parts of the MathWorks® Automotive Advisory Board (MAAB) Guidelines.

Model Checks for MISRA C:2012 Compliance

Use the Model Advisor to check that your model is most likely to produce MISRA C:2012 compliant code.

Model Checks for Requirements Links

Use the Model Advisor to check that every requirements link in a model has a valid target in a requirements document.

Model Metrics

To help assess model size, complexity and readability compliance with standards, use the model metrics.

Was this topic helpful?