This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Detect multiple driving blocks executing at the same time step

Description

Select the diagnostic action to take when the software detects a Merge block with more than one driving block executing at the same time step.

Category: Diagnostics

Settings

Default: error

none

Simulink® software takes no action.

warning

Simulink software displays a warning.

error

Simulink terminates the simulation and displays an error message only if the execution order of the driving blocks is not explicitly defined.

Tips

  • Connecting the inputs of a Merge block to multiple driving blocks that execute at the same time step can lead to inconsistent results for both simulation and generated code. Set Detect multiple driving blocks executing at the same time step to error to avoid such situations.

  • If Underspecified initialization detection is set to Simplified, this parameter is disabled, and Simulink software automatically uses the strictest setting (error) for this diagnostic. Multiple driving blocks executing at the same time step always result in an error.

Command-Line Information

Parameter: MergeDetectMultiDrivingBlocksExec
Value: 'none' | 'warning' | 'error'
Default: 'error'

Recommended Settings

ApplicationSetting
Debuggingerror
Traceabilityerror
EfficiencyNo impact
Safety precautionerror

See Also

Related Topics