Main Content

Check for divide-by-zero calculations

mathworks.hism.hisl_0067

Since R2021a

Dependencies: Simulink® Check™ and Simulink Design Verifier™

Usage: High-Integrity System Modeling

Guideline: hisl_0067: Protect against divide-by-zero calculations

Description

This check identifies the blocks that can result in divide-by-zero calculations.

Note

This check performs Simulink Design Verifier analysis on the model.

Check Parameters

Use the Model Advisor Configuration Editor to define the scope of the analysis by specifying the input parameters.

ParameterDescription

Follow links

Verify and trace links within the Simulink model.

on (default) | off

Look under masks

Specify whether to include masked model elements in the analysis.

all (default) | none | graphical | functional

  • all — Check analysis includes all masked model elements.

  • none — Check analysis excludes masked model elements.

  • graphical — Check analysis includes only the graphical masked model elements.

  • functional — Check analysis includes only the functional masked model elements.

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 ConditionRecommended Action
One or more blocks in the model can result in divide-by-zero calculations.Modify to avoid divide-by-zero calculations.

Capabilities and Limitations

  • Allows exclusions of blocks and charts

  • Analyzes only active variant choices

  • Performs extensive analysis

Version History

Introduced in R2021a