blockBooleanExtractor
Extract scalar signal out of boolean signal vector dependent on integer input index
Information
Block that returns
y = u[index];
where u is a vector-valued Boolean input signal and
index is an Integer input signal. When the index
is out of range,
-
then
y = u[nin]ifindex > nin, and -
y = u[1]ifindex < 1.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nin | 1 | Number of inputs |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.IntegerInput | index | Index of input vector element to be extracted out | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput[nin] | u | Boolean input signals | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput | y | Boolean signal extracted from input vector, u[index] |
Revisions
-
September 30, 2022, by Jianjun Hu:
First implementation.