Model Referencing Pane

Model Referencing Pane Overview

Specify the options for including other models in this model, this model in other models, and for building simulation and code generation targets.

Configuration

Set the parameters displayed.

Tips

See Also

Rebuild options

Select whether to rebuild simulation and Real-Time Workshop targets for referenced models before updating, simulating, or generating code from this model.

Settings

Default: If any changes detected

If any changes detected

Rebuilds the target for a referenced model if Simulink software detects any changes of any kind in the target's dependencies. This option also checks for changes in the compiled form of the referenced model. Checking the compiled model can detect some changes that occur even in dependencies that you do not specify.

Always

Rebuilds all targets referenced by this model before simulating, updating, or generating code from it.

If any changes in known dependencies detected

Rebuilds a target if Simulink software detects any changes in known target dependencies (see below) since the target was last built. This option ignores cosmetic changes, such as annotation changes, in the referenced model and in any block library dependencies, thus preventing unnecessary rebuilds.

Never

Never rebuild targets before simulating or generating code from this model. If you are certain that your targets are up-to-date, you can use this option to avoid time-consuming target dependency checking when simulating, updating, or generating code from a model.

Tips

Dependency

Selecting Never enables the Never rebuild targets diagnostic parameter.

Command-Line Information

Parameter: UpdateModelReferenceTargets
Type: string
Value: 'IfOutOfDate' | 'Force' | 'AssumeUpToDate' | 'IfOutOfDateOrStructuralChange'
Default: 'IfOutOfDateOrStructuralChange'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNever or If any changes detected

See Also

Never rebuild targets diagnostic

Select the diagnostic action that Simulink software should take if it detects a target that needs to be rebuilt.

Settings

Default: Error if targets require rebuild

none

Simulink software takes no action.

Warn if targets require rebuild

Simulink software displays a warning.

Error if targets require rebuild

Simulink software terminates the simulation and displays an error message.

Tip

Selecting None bypasses dependency checking, and thus enables faster updating, simulation, and code generation, but can cause models that are not up-to-date to malfunction or generate incorrect results.

Dependency

This parameter is enabled only if you select Never in the Rebuild options field.

Command-Line Information

Parameter: CheckModelReferenceTargetMessage
Type: string
Value: 'none' | 'warning' | 'error'
Default: 'error'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionerror if targets require rebuild

See Also

Total number of instances allowed per top model

Specify how many references to this model can occur in another model.

Settings

Default: Multiple

Zero

The model cannot be referenced. An error occurs if a reference to the model occurs in another model.

One

The model can be referenced at most once in a model reference hierarchy. An error occurs if more than one reference exists.

Multiple

The model can be referenced more than once in a hierarchy, provided that it contains no constructs that preclude multiple reference. An error occurs if the model cannot be multiply referenced, even if only one reference exists.

Command-Line Information

Parameter: ModelReferenceNumInstancesAllowed
Type: string
Value: 'Zero' | 'Single' | 'Multi'
Default: 'Multi'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Model dependencies

Specify the files on which this model relies. They are typically MAT-files and M-files used to initialize parameters and to provide data.

Settings

No Default

Tips

Command-Line Information

Parameter: ModelDependencies
Type: string
Value: any valid value
Default: ''

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Pass scalar root inputs by value for Real-Time Workshop

Specify whether a model that calls (references) this model passes this model's scalar inputs by value.

Settings

Default: Off

On

A model that calls (i.e., references) this model passes this model's scalar inputs by value.

Off

The calling model passes the inputs by reference (it passes the addresses of the inputs rather than the input values).

Tips

Command-Line Information

Parameter: ModelrefPassRootInputsByReference
Type: string
Value: 'on' | 'off'
Default: 'off'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionOff

See Also

Minimize algebraic loop occurrences

Specify whether Simulink software tries to eliminate algebraic loops involving this model from models that reference it.

Settings

Default: Off

On

Simulink software tries to eliminate algebraic loops involving this model from models that reference it.

Off

Simulink software does not try to eliminate algebraic loops from the models that reference this model.

Tips

Command-Line Information

Parameter: ModelrefMinAlgLoopOccurrences
Type: string
Value: 'on' | 'off'
Default: 'off'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionOff

See Also

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS