modelBooleanExtractor
Validation model for the boolean extractor block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Routing.BooleanExtractor.
The instances extIndBoo, extIndBoo1, extIndBoo2,
extIndBoo3, and extIndBoo4 have the same input vector with
dimension of 4. However, they have different extract index and thus different output.
-
The instance
extIndBoohas the extract index of2. The output isu[2]. -
The instance
extIndBoo1has the extract index of6. Thus it is out of upper range[1, 4]and it outputsu[4]. It also issues a warning to indicate that the extract index is out of range. -
The instance
extIndBoo2has the extract index of0. Thus it is out of lower range[1, 4]and it outputsu[1]. It also issues a warning to indicate that the extract index is out of range. -
The instance
extIndBoo3has the extract index changing from2to-1. Thus it first outputsu[2], and then changes tou[1]. At the moment when the extract index becomes out of range, it issues a warning. -
The instance
extIndBoo4has the extract index changing from0to3. Thus it first outputsu[1], and then changes tou[3]. It issues a warning at the start of the simulation.
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Routing.BooleanExtractor | extIndBoo | Extracts signal from an input signal vector | |
| Buildings.Controls.OBC.CDL.Routing.BooleanExtractor | extIndBoo1 | Extracts signal from an input signal vector when the extract index is out of the upper range | |
| Buildings.Controls.OBC.CDL.Routing.BooleanExtractor | extIndBoo2 | Extracts signal from an input signal vector when the extract index is out of the lower range | |
| Buildings.Controls.OBC.CDL.Routing.BooleanExtractor | extIndBoo3 | Extracts signal from an input signal vector when the extract index changes from within range to out of range | |
| Buildings.Controls.OBC.CDL.Routing.BooleanExtractor | extIndBoo4 | Extracts signal from an input signal vector when the extract index changes from out of range to within range | |
| Buildings.Controls.OBC.CDL.Logical.Sources.Constant | con1 | Block that outputs true signal | |
| Buildings.Controls.OBC.CDL.Logical.Sources.Constant | con | Block that outputs false signal | |
| Buildings.Controls.OBC.CDL.Logical.Sources.Pulse | booPul | Generate pulse signal of type boolean | |
| Buildings.Controls.OBC.CDL.Logical.Sources.Pulse | booPul1 | Generate pulse signal of type boolean | |
| Buildings.Controls.OBC.CDL.Integers.Sources.Constant | conInt | Index to extract input signal | |
| Buildings.Controls.OBC.CDL.Integers.Sources.Constant | conInt1 | Index to extract input signal | |
| Buildings.Controls.OBC.CDL.Integers.Sources.Constant | conInt2 | Index to extract input signal | |
| Buildings.Controls.OBC.CDL.Integers.Sources.Pulse | intPul | Generate pulse signal of type Integer | |
| Buildings.Controls.OBC.CDL.Integers.Sources.Pulse | intPul1 | Generate pulse signal of type Integer |
Revisions
-
October 5, 2022, by Jianjun Hu:
First implementation.