modelRealExtractor
Validation model for the extractor block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Routing.RealExtractor.
The instances extIndSig, extIndSig1, extIndSig2,
extIndSig3, and extIndSig4 have the same input vector with
dimension of 5. However, they have different extract index and thus different output.
-
The instance
extIndSighas the extract index of2. The output isu[2]. -
The instance
extIndSig1has the extract index of6. Thus it is out of upper range[1, 5]and it outputsu[5]. It also issues a warning to indicate that the extract index is out of range. -
The instance
extIndSig2has the extract index of0. Thus it is out of lower range[1, 5]and it outputsu[1]. It also issues a warning to indicate that the extract index is out of range. -
The instance
extIndSig3has 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
extIndSig4has 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.RealExtractor | extIndSig | Extracts signal from an input signal vector | |
| Buildings.Controls.OBC.CDL.Routing.RealExtractor | extIndSig1 | Extracts signal from an input signal vector when the extract index is out of the upper range | |
| Buildings.Controls.OBC.CDL.Routing.RealExtractor | extIndSig2 | Extracts signal from an input signal vector when the extract index is out of the lower range | |
| Buildings.Controls.OBC.CDL.Routing.RealExtractor | extIndSig3 | Extracts signal from an input signal vector when the extract index changes from within range to out of range | |
| Buildings.Controls.OBC.CDL.Routing.RealExtractor | extIndSig4 | Extracts signal from an input signal vector when the extract index changes from out of range to within range | |
| Buildings.Controls.OBC.CDL.Reals.Sources.Ramp | ram | Block that outputs ramp signal | |
| Buildings.Controls.OBC.CDL.Reals.Sources.Ramp | ram1 | Block that outputs ramp signal | |
| Buildings.Controls.OBC.CDL.Reals.Sources.Ramp | ram2 | Block that outputs ramp signal | |
| Buildings.Controls.OBC.CDL.Reals.Sources.Pulse | pul | Generate pulse signal of type Real | |
| Buildings.Controls.OBC.CDL.Reals.Sources.Pulse | pul1 | Generate pulse signal of type Real | |
| 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 14, 2022, by Jianjun Hu:
Added more validations. -
July 19, 2018, by Jianjun Hu:
First implementation.