modelRealExtractSignal

Validation model for the extract signal block

Information

Validation test for the block Buildings.Controls.OBC.CDL.Routing.RealExtractSignal.

The instance extSig has the input vector with dimension of 4 and the extracting vector is [1, 2, 5]. Thus the output vectors is [u[1], u[2], u[5]].

The instance extSig1 has the input vector with dimension of 4 and the extracting vector is [1, 2, 5, 3, 4, 2]. Thus the output vectors is [u[1], u[2], u[5], u[3], u[4], u[2]].

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 extSig. It will issue error and the model will not translate.

Components

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Routing.RealExtractSignalextSigBlock that extracts signals from an input signal vector
Buildings.Controls.OBC.CDL.Routing.RealExtractSignalextSig1Block that extracts signals from an input signal vector
Buildings.Controls.OBC.CDL.Reals.Sources.RampramBlock that outputs ramp signal
Buildings.Controls.OBC.CDL.Reals.Sources.Rampram1Block that outputs ramp signal
Buildings.Controls.OBC.CDL.Reals.Sources.Rampram2Block that outputs ramp signal
Buildings.Controls.OBC.CDL.Reals.Sources.PulsepulGenerate pulse signal of type Real
Buildings.Controls.OBC.CDL.Reals.Sources.Pulsepul1Generate pulse signal of type Real

Revisions

  • October 14, 2022, by Jianjun Hu:
    Added validation when the number of outputs is more than the number of inputs.
  • July 24, 2017, by Jianjun Hu:
    First implementation.