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

Ports

Input

expand all

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

expand all

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

expand all

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