User`s guide

15 Model Coverage Definition
15-12
Conditional input branch execution
To improve model execution when the model contains Switch and Multiport Switch
blocks, in the Configuration Parameters dialog box, on the Optimization pane, select
Conditional input branch execution. If you select this parameter, the simulation
executes only blocks that are required to compute the control input and the data input
selected by the control input.
When Conditional input branch execution is enabled, instead of executing all blocks
driving the Switch block input ports at each time step, only the blocks required to
compute the control input and the data input selected by the control input execute.
Several considerations affect or limit Switch block optimization:
Only blocks with -1 (inherited) or inf (Constant) sample time can be optimized.
Blocks with outputs flagged as test points cannot be optimized.
Multirate blocks cannot be optimized.
Blocks with states cannot be optimized.
Only S-functions with the SS_OPTION_CAN_BE_CALLED_CONDITIONALLY option
enabled can be optimized.
For example, if your model has a Switch block with output flagged as a test point, such
as when a Scope block is attached, that Switch block is not executed, and the model
coverage data is incomplete. If you have a model with Switch blocks and you want to
verify that the model coverage data is complete, clear Conditional input branch
execution.
Conditional input branch execution does not apply to Stateflow charts.