modelIntegerExtractSignal
Validation model for extracting integer signals
Information
Validation test for the block Buildings.Controls.OBC.CDL.Routing.IntegerExtractSignal.
The instance extIntSig has the input vector with dimension of 4 and
the extracting vector is [3, 2, 4]. Thus the output vectors is [u[3], u[2], u[4]].
The instance extIntSig1 has the input vector with dimension of 4 and
the extracting vector is [3, 2, 4, 2, 3].
Thus the output vectors is [u[3], u[2], u[4], u[2], u[3]].
Note that when the extracting vector extract has any element with the value that
is out of range [1, nin], e.g. [1, 4] for instance in extIntSig.
It will issue error and the model will not translate.
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Routing.IntegerExtractSignal | extIntSig | Block that extracts signal from an integer input signal vector | |
| Buildings.Controls.OBC.CDL.Routing.IntegerExtractSignal | extIntSig1 | Block that extracts signal from an integer input signal vector | |
| Buildings.Controls.OBC.CDL.Integers.Sources.Constant | conInt2 | Block that outputs integer constant | |
| 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 | |
| Buildings.Controls.OBC.CDL.Integers.Sources.Constant | conInt3 | Block that outputs integer constant |
Revisions
-
October 5, 2022, by Jianjun Hu:
First implementation.