blockConcatenateSelectLogical

Merge both Boolean arrays when present, otherwise return the available one

Information

This block concatenates two Boolean arrays if both the parameters have_u1 and have_u2 are true. Otherwise, it returns the sole available input array unchanged.

Parameters

TypeNameDefaultDescription
Booleanhave_u1Set to true if u1 array available
Booleanhave_u2Set to true if u2 array available
Integernin10Size of input array
Integernin20Size of input array
Integernoutif have_u1 and have_u2 then nin1 + nin2 elseif have_u1 then nin1 else nin2Size of output array

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.BooleanInput[nin1]u1Array of Boolean signals
Buildings.Controls.OBC.CDL.Interfaces.BooleanInput[nin2]u2Array of Boolean signals
Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput[nout]yConcatenated array

Components

TypeNameDefaultDescription
PlaceholderLogical[if have_u1 then nin1 else nin2]selAvaSelect available array
ConcatenateLogicalcat1Concatenate

Revisions

  • July 10, 2026, by Antoine Gautier:
    First implementation.