Main Content

Signal resolution

Option to specify how model resolves signals and states to Simulink.Signal objects

Model Configuration Pane: Diagnostics / Data Validity

Description

The Signal resolution parameter specifies how the software resolves signals and states in a model to Simulink.Signal objects. For more information, see Explicit and Implicit Symbol Resolution.

Implicit signal resolution is recommended only for fast prototyping. Implicit resolution slows performance, complicates model validation, and can have nondeterministic effects.

To change settings throughout a model so that the model does not use implicit signal resolution, use the disableimplicitsignalresolution function.

Settings

Explicit only (default) | Explicit and implicit | Explicit and warn implicit | None
Explicit only

By default, the software resolves signals and states in the model to Simulink.Signal objects only explicitly does not perform implicit signal resolution. This is the recommended setting.

Explicit and implicit

The software implicitly resolves signals and states in the model to Simulink.Signal objects where possible without issuing warnings.

Explicit and warn implicit

The software implicitly resolves signals and states in the model to Simulink.Signal objects where possible without issuing warnings.

None

The software does not resolve states and signals in the model to Simulink.Signal objects. With this setting, none of the signals, states, Stateflow® data, or MATLAB Function block data in the model can resolve to a Simulink.Signal object.

This setting reduces the number of dependencies the model has on variables and objects in workspaces and data dictionaries. Reducing model dependencies can improve model portability, readability, and ease of maintenance.

This setting does not affect data stores that you define by creating Simulink.Signal objects instead of using Data Store Memory blocks.

Tips

The table describes how the parameter values you set using the Configuration Parameters dialog box map to the parameter values you set programmatically.

SignalResolutionControl ValueEquivalent Signal resolution Value
"None"None
"UseLocalSettings"Explicit only
"TryResolveAll"Explicit and implicit
"TryResolveAllWithWarning"Explicit and warn implicit
  • To specify explicit resolution for signals, use the Signal Properties dialog box.

  • Multiple signals can resolve to the same signal object and have the properties that the object specifies. However, the signal object cannot use a storage class other than Auto or Reusable.

  • To specify explicit resolution for discrete states of blocks that have discrete states, such as the Discrete-Time Integrator block, use the State Attributes tab of the Block Parameters dialog box.

Recommended Settings

ApplicationSetting
DebuggingExplicit only or None
TraceabilityExplicit only or None
EfficiencyExplicit only or None
Safety precautionExplicit only

Programmatic Use

Parameter: SignalResolutionControl
Type: string | character vector
Value: "None" | "UseLocalSettings" | "TryResolveAll" | "TryResolveAllWithWarning"
Default: "UseLocalSettings"

Version History

Introduced before R2006a