Conditional input branch execution - Option to optimize input paths for Switch and Multiport Switch

        blocks - MATLAB ([original](https://in.mathworks.com/help/simulink/gui/conditionalinputbranchexecution.html)) ([raw](?raw))

Main Content

Option to optimize input paths for Switch and Multiport Switch blocks

Model Configuration Pane: Simulation Target

Description

This parameter specifies whether the software optimizes input paths forSwitch and Multiport Switch blocks. The software optimizes by executing only the blocks required to compute the control input and the data input selected by the control input. This optimization improves execution speed of simulation and generated code. It has these limitations:

Settings

on (default) | off

on

The software optimizes the execution of blocks that determine the control and data inputs for Switch and Multiport Switch blocks.

off

The software executes blocks driving the Switch andMultiport Switch block input ports at each time step.

Application Setting
Debugging No impact
Traceability on
Efficiency on (execution), No impact (ROM, RAM)
Safety precaution No impact

Programmatic Use

Parameter: ConditionallyExecuteInputs
Type: string | character vector
Values: 'on' | 'off'
Default: 'on'

Version History

Introduced in R2008a

See Also

Topics