blockConcatenateLogical
Information
This block concatenates two Boolean arrays.
When is_app = true (default), the values of u2 are
appended after the values of u1.
When is_app = false, the values of u2 are
prepended before the values of u1.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | is_app | true | Set to true to append to the input array, false to prepend |
| Integer | nin1 | 0 | Size of input array |
| Integer | nin2 | 0 | Size of input array |
| Integer | nout | nin1 + nin2 | Size of output array |
| Integer[nout] | idxExt1 | if is_app then cat(1, {i for i in 1:nin1}, fill(1, nin2)) else cat(1, fill(1, nin2), {i for i in 1:nin1}) | Indices of first array to be extracted |
| Integer[nout] | idxExt2 | if is_app then cat(1, fill(1, nin1), {i for i in 1:nin2}) else cat(1, {i for i in 1:nin2}, fill(1, nin1)) | Indices of second array to be extracted |
| Boolean[nout] | selInp | if is_app then cat(1, fill(true, nin1), fill(false, nin2)) else cat(1, fill(false, nin2), fill(true, nin1)) | Selector for first (true) or second (false) array values |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput[nin1] | u1 | Array of Boolean signals | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput[nin2] | u2 | Array of Boolean signals | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput[nout] | y | Concatenated array |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Routing.BooleanExtractSignal | expInp | Expand array | |
| Buildings.Controls.OBC.CDL.Logical.Switch[nout] | logSwi | Switch between first and second array | |
| Buildings.Controls.OBC.CDL.Logical.Sources.Constant[nout] | con | Input selector | |
| Buildings.Controls.OBC.CDL.Routing.BooleanExtractSignal | exp2 | Expand array |
Revisions
-
July 10, 2026, by Antoine Gautier:
First implementation.