Main Content

Context-dependent inputs

Diagnostic action to take when function-call subsystem can change its inputs

Model Configuration Pane: Diagnostics / Connectivity

Description

The Context-dependent inputs parameter determines the diagnostic action to take when the software must compute any function-call subsystem inputs directly or indirectly during execution of a call to a function-call subsystem. This situation occurs when executing a function-call subsystem that can change its inputs.

To fix an error or warning generated by this diagnostic, use one of these approaches:

  • For an Inport block in a function-call subsystem, select the Latch input for feedback signals of function-call subsystem outputs parameter.

  • For an Inport block at the root-level of a model that contains a Trigger block with Trigger type set as function-call and that is referenced by a Model block, select the Latch input for feedback signals of function-call subsystem outputs parameter.

  • Place a Function-Call Feedback Latch block on the feedback signal.

For examples of function-call subsystems and these approaches, see Simulink Subsystem Semantics.

Settings

error (default) | warning
error

The software displays an error for context-dependent inputs.

warning

The software displays a warning for context-dependent inputs.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionError

Programmatic Use

Parameter: FcnCallInpInsideContextMsg
Value: 'Error'| 'Warning'
Default: 'Error'

Version History

Introduced in R2006b