blockTrueArrayConditional
Output a Boolean array with a given number of true elements and a priority order
Information
Accepts indices of true elements that may not be within the range of indices of the output vector. In this, the number of true elements will not be met.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nin | 0 | Size of input array |
| Integer | nout | nin | Size of output array |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.IntegerInput | u | Number of true elements | |
| Buildings.Controls.OBC.CDL.Interfaces.IntegerInput[nin] | uIdx | Array of indices by order of priority to be true | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput[nout] | y1 | Output |
Revisions
-
March 29, 2024, by Antoine Gautier:
First implementation.