Main Content

Check undefined initial output for conditional subsystems

Check ID: mathworks.jmaab.jc_0640

Guideline: jc_0640: Initial value settings for Outport blocks in conditional subsystems

Description

Checks that the initial output value for all Outports and Merge blocks connected to a conditional subsystem are explicitly defined.

Note

This check identifies Outport blocks and Merge blocks connected to Conditional subsystems in your model that can cause problems if you use the classic initialization mode.

To set classic initialization mode:

  1. On the Modeling tab, inSetup section, select Model Settings.

  2. In the Configuration Parameters dialog box, use the search box and enter Underspecified initialization detection.

  3. From the drop-down list, select Classic.

This check requires a Simulink® Check™ license.

Check Parameterization

This check does not include sub-checks because the MAB modeling guideline provides only one sub ID.

For reference, the MAB guideline sub ID(s) that are recommended for use by the NA-MAAB and JMAAB modeling standards organizations are:

  • NA-MAAB — No recommendations

  • JMAAB — a

Results and Recommended Actions

ConditionRecommended Action
The initial output for all Outports and Merge blocks connected to a Conditional subsystem are not explicitly defined.For a Conditional subsystem, explicitly define the initial output value for all Outports and Merge blocks connected to the Conditional subsystem.

Capabilities and Limitations

  • Does not run on library models.

  • Analyzes content in masked subsystems. By default, the input parameter Look under masks is set to graphical.

  • Analyzes content of library-linked blocks. By default, the input parameter Follow links is set to on.

  • Allows exclusions of blocks and charts.

Edit-Time Checking

This check is supported by edit-time checking.