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

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Routing.IntegerExtractSignalextIntSigBlock that extracts signal from an integer input signal vector
Buildings.Controls.OBC.CDL.Routing.IntegerExtractSignalextIntSig1Block that extracts signal from an integer input signal vector
Buildings.Controls.OBC.CDL.Integers.Sources.ConstantconInt2Block that outputs integer constant
Buildings.Controls.OBC.CDL.Integers.Sources.PulseintPulGenerate pulse signal of type Integer
Buildings.Controls.OBC.CDL.Integers.Sources.PulseintPul1Generate pulse signal of type Integer
Buildings.Controls.OBC.CDL.Integers.Sources.ConstantconInt3Block that outputs integer constant

Revisions

  • October 5, 2022, by Jianjun Hu:
    First implementation.