Main Content

Never rebuild diagnostic

Diagnostic action to take when model reference target must be rebuilt

Model Configuration Pane: Model Referencing

Description

The Never rebuild diagnostic configuration parameter determines the diagnostic action to take when a model reference target must be rebuilt.

Set Configuration Parameter for Referenced Model

In a model reference hierarchy, how you open the Configuration Parameters dialog box determines whether you edit the configuration parameter for the top model in the current model hierarchy or the current referenced model.

  • Top model in the current model hierarchy — In the Simulink® Toolstrip, on the Modeling tab, click Model Settings.

  • Current referenced model — In the Simulink Toolstrip, on the Modeling tab, click the Model Settings button arrow. Then, in the Referenced Model section, select Model Settings.

Alternatively, open the referenced model as a top model. Then, in the Simulink Toolstrip, on the Modeling tab, click Model Settings.

Dependencies

To enable this parameter, set Rebuild to Never.

Settings

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

The software takes no action.

Selecting None bypasses dependency checking, which enables faster updating, simulation, and code generation. The None setting can cause models that are not up to date to malfunction or generate incorrect results. For more information on the dependency checking, see Rebuild.

Warn if rebuild required

The software displays a warning.

Error if rebuild required

The software terminates the simulation and displays an error message.

Tips

When you set the Rebuild parameter to Never and set the Never rebuild diagnostic parameter to Error if rebuild required or Warn if rebuild required, then Simulink 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