Variant Start
Libraries:
Simulink /
Signal Routing
Description
The Variant Start block defines the start of the bounded region that allows you to limit variant condition propagation without introducing a level of hierarchy. Define the end of the bounded region by using Variant End. For every Variant Start block, there is a single corresponding Variant End block. When you specify the variant conditions on the Variant Start block, the corresponding Variant End block inherits the conditions and other parameters based on the unique Variant Start End Tag on compile.
In a given hierarchy, a region between the outport of a Variant Start block and the corresponding inport of the Variant End block is defined as a bounded region if the following conditions are met:
You can create a subsystem that wraps all the blocks within the choice without intersecting with the other choice. Thus, there is a clear demarcation of choices.
You can create a subsystem with only one inport(connected to the outport of the Variant Start block), and only one outport (connected to the outport of the destination). Choices do not branch out of the region.
You can highlight the blocks within a bounded region to make them visually distinct for easy identification. To highlight the blocks within the bounded region:
In the Simulink® Toolstrip, on the Debug tab, select Information Overlays > Start End Bounded Regions.
On the Variant Start End Bounded Regions tab, expand the entry representing the Variant Start block, then choose the port corresponding to the bounded region blocks to highlight. Alternatively, click the output signal connected to the Variant Start block to highlight the blocks within the corresponding bounded region.
Block highlighting applies only to the model in which it is enabled and does not extend to the bounded regions in the referenced models. To highlight the blocks within a bounded region of a referenced model, open the referenced model and select the Start End Bounded Regions option within that model. For more information, see Control Variant Condition Propagation using Variant Start and Variant End Blocks.
Examples
Limitations
The Variant Start block works with time-based, and action signals. You cannot use SimEvents®, Simscape™ Multibody™, or other non-time-based signals with these blocks.
Including these blocks within the bounded region formed by the Variant Start and Variant End blocks is not supported, as variant conditions could extend beyond the bounded region when their corresponding pair blocks are located outside of it.
Entity Multicast (SimEvents) and Queue (SimEvents)
Merging signals from variant choices of a Variant Start block into a bus is not supported; however, they can be routed to separate buses.
Ports
Input
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|

