Main Content

Never rebuild diagnostic

(To be removed) Diagnostic action to take when model reference target must be rebuilt

Model Configuration Pane: Model Referencing

The Never rebuild diagnostic configuration parameter will be removed in a future release. Use protected models instead. For more information, see Version History.

Description

The Never rebuild diagnostic configuration parameter determines the diagnostic action to take when the Rebuild configuration parameter of the top model in a model hierarchy is set to Never and a model reference target is out of date.

Dependencies

To enable this parameter, set Rebuild to Never.

Settings

Error if rebuild required (default) | Warn if rebuild required | None
Error if rebuild required

The software terminates the simulation and displays an error message.

Warn if rebuild required

The software displays a warning and the simulation continues.

None

Simulation continues without error or warning.

This setting bypasses dependency checking, which enables faster updating, simulation, and code generation. However, this setting can cause models that are not up to date to malfunction or generate incorrect results. For more information on the dependency checking, see Model dependencies.

Tips

When you set Rebuild to Never and Never rebuild diagnostic to Error if rebuild required or Warn if rebuild required, the software:

  • Performs the same change detection processing as for the Rebuild setting If changes in known dependencies detected, except it does not compare structural checksums

  • Issues an error or warning, depending on the Never rebuild diagnostic setting, if it detects a change

  • Never rebuilds the model reference target

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionError if rebuild required

Programmatic Use

Parameter: CheckModelReferenceTargetMessage
Value: "none" | "warning" | "error"
Default: "error"

Version History

Introduced before R2006a

collapse all