Main Content

Context-dependent inputs

Description

Select the diagnostic action to take when Simulink® has to compute any function-call subsystem inputs directly or indirectly during execution of a call to a function-call subsystem.

Category: Diagnostics

Settings

Default: error

error

Issue an error for context-dependent inputs.

warning

Issue a warning for context-dependent inputs.

Tips

  • This situation occurs when executing a function-call subsystem that can change its inputs.

  • For examples of function-call subsystems, see the "Function-call systems" examples in the Simulink "Subsystem Semantics" library).

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

    • For the Inport block inside of the function-call subsystem, enable 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 using these approaches, open the sl_subsys_fcncallerr12 model and press the more info button.

Command-Line Information

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

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionError

Related Topics