blockNumberOfRequests

Outputs the number of signals that are above/below a certain threshold

Extends from Modelica.Icons.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions).

Information

Block that outputs the number of inputs that exceed a threshold. The parameter kind is used to determine the kind of the inequality. The table below shows the allowed settings.

Value of parameter kind Output signal incremented by 1 for each i ∈ {1, ..., nin} if
0 u[i] > t
1 u[i] ≥ t
2 u[i] ≤ t
3 u[i] < threShold

This model may be used to check how many rooms exceed a temperature threshold.

Parameters

TypeNameDefaultDescription
IntegerninNumber of inputs
Realt0Threshold
IntegerkindSet to 0 for u>threShold, to 1 for >=, to 2 for <= or to 3 for <

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.IntegerOutputyNumber of input signals that violate the threshold
Buildings.Controls.OBC.CDL.Interfaces.RealInput[nin]uInput signals

Revisions

  • September 8, 2020, by Michael Wetter:
    Moved the block to the obsolete package.
    This is for issue 2124.
  • August 6, 2020, by Michael Wetter:
    Renamed threshold to t.
    This is for issue 2076.
  • January 10, 2017, by Milica Grahovac:
    Initial CDL implementation.
  • November 21, 2011, by Michael Wetter:
    Improved documentation.
  • November 25, 2008, by Michael Wetter:
    First implementation.