Main Content

Check for root Outports with missing range definitions

Check ID: mathworks.hism.hisl_0026

Description

Identifies the following:

  • root level Outport blocks with missing or erroneous minimum or maximum range values for Simulink models.

    You can specify Outport block minimum and maximum values with block parameters or Simulink® signal objects that explicitly resolve to the connected signal lines.

  • root level Output ports with missing or erroneous minimum or maximum range values for Architecture models.

A results table provides links to Outport blocks that do not pass the check, along with conditions triggering the warning.

Available with Simulink Check™.

Results and Recommended Actions

ConditionRecommended Action

Missing range — Model contains Outport blocks with numeric data types that have missing range parameters (minimum and/or maximum).

For the listed Outport blocks and Simulink signal objects, specify scalar minimum and maximum parameters.

Missing range(s) for bus object — Bus objects defining the Outport blocks have leaf elements with missing ranges.

For the listed leaf elements, to specify the model interface range, provide scalar minimum and maximum parameters.

Range specified at Outport will be ignored — Minimum or maximum values at Outports or Simulink signal objects are not supported for bus data types. The values are ignored during range checking.

To enable range checking, specify minimum and maximum signal values on the leaf elements of the bus objects defining the data type.

No bus data type specified — Model contains Outport block or Simulink signal objects with inherited bus data types.

For the Outport blocks and Simulink signal objects, specify one of the supported data types:

Implicit resolution to a Simulink signal object — Model contains Outport block signal names that implicitly resolve to a Simulink signal object in the base workspace, model workspace, or Simulink data dictionary.

For the listed Simulink signal objects, in the property dialog, select signal property Signal name must resolve to Simulink signal object. To set this option programmatically, use the port parameter MustResolveToSignalObject.
One or more Output ports of Architecture model have missing or erroneous range definitions.Data interface assigned with the listed Output ports has missing ranges. Provide minimum and maximum values to the data interface.

Capabilities and Limitations

  • This check does not flag ports with data type of Enum or Boolean when min max values are not set.

  • Does not run on library models.

  • Does not support exclusion in Architecture models.

  • Allows exclusions of blocks and charts.

See Also