merge
Recombines the outputs of mutually-exclusive conditional subsystems.
📝Syntax
Block type: merge
📥Input Arguments
Parameter Description
input ports Each input is driven by a conditional (action) subsystem.
📤Output Arguments
Parameter Description
output ports 1 output: the value of the branch that ran this step.
📄Description

Recombines the outputs of mutually-exclusive conditional subsystems.

The inputs are driven directly by conditional subsystems, only one of which executes on a given step. The output takes the value of the input whose source subsystem ran this step; when no source ran, it holds its previous value (starting from InitialOutput). If two sources run on the same step, the later input port wins.

Parameters

Parameter Default value
InitialOutput 0

Block Characteristics

Block type merge
Family Utility blocks
Phases INIT, ALGEBRAIC

Extended Capabilities

Code generation: supported for C and Rust.

🔗See Also
ifswitchCase
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub