Variant End - Define end of bounded region - Simulink (original) (raw)
Main Content
Define end of bounded region
Since R2024a
Libraries:
Simulink / Signal Routing
Description
The Variant End block defines the end of the bounded region that allows you to limit variant condition propagation without introducing a level of hierarchy. Define the start of the bounded region by using the Variant Start block. For everyVariant 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.
Examples
Limitations
- The Variant End 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.
- Goto and From
- Inport and Outport
- Data Store Write and Data Store Read
- Simulink Function and Function Caller
- State Writer and State Reader
- State owner block and State Writer
- Argument Inport and Argument Outport
- 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
Input branch that defines the end of the bounded region with the corresponding Variant Start block.
Data Types: single
| double
| half
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
| Boolean
| fixed point
| enumerated
| bus
| image
Input port associated with the _N_th branch that defines the end of the bounded region with the corresponding Variant Start block.
Data Types: single
| double
| half
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
| Boolean
| fixed point
| enumerated
| bus
| image
Output
Output signal from the active variant.
Data Types: single
| double
| half
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
| Boolean
| fixed point
| enumerated
| bus
| image
Parameters
Unique identifier to identify the correct Variant Start andVariant End pair that form the bounded region, specified as a valid MATLAB identifier. A valid MATLAB identifier is a character vector of alphanumerics (A–Z, a–z, 0–9) and underscores, such that the first character is a letter and the length of the character vector is less than or equal to namelengthmax
.
Programmatic Use
Block Parameter: VariantStartEndTag |
---|
Type: character vector |
Values: 'A' | valid MATLAB identifier |
Default: 'A' |
Select this parameter to highlight the Variant Start with the same Variant Start End Tag as the Variant End. If there are multiple Variant Start blocks with the sameVariant Start End Tag, then the first block found is highlighted.
Programmatic Use
Block Parameter: VariantPairedBlock |
---|
Type: character vector |
Values: 'off' | 'on' |
Default: 'off' |
Block Characteristics
Data Types | Boolean | bus | double | enumerated | fixed point | half | integer | single | string |
---|---|---|---|---|---|---|---|---|
Direct Feedthrough | no | |||||||
Multidimensional Signals | no | |||||||
Variable-Size Signals | no | |||||||
Zero-Crossing Detection | no |
Extended Capabilities
Version History
Introduced in R2024a