blockLastTrueIndex
Information
Returns the index of the last true element of the Boolean
input vector.
If no element is true, the block returns 0.
Parameters
| Type | Name | Default | Description |
| Integer | nin | 0 | Size of input array |
Components
| Type | Name | Default | Description |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput[nin] | u1 | | Array of Boolean signals |
| Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput | y | | Index of first element being true |
| Buildings.Controls.OBC.CDL.Conversions.BooleanToInteger[nin] | booToInt | | Return index if element is true, 0 otherwise |
| Buildings.Templates.Plants.Controls.Utilities.MultiMaxInteger | mulMax | | Return minimum index |
Revisions
-
March 29, 2024, by Antoine Gautier:
First implementation.