modelNumberOfRequests

Example model for block that outputs the number of requests

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

Example that demonstrates the use of the block Buildings.Controls.Continuous.NumberOfRequests. The parameters of the block are such that the output is incremented for each input signal that is strictly larger than 0. The figure below shows the inputs and the output of the block.

Simulation results

Components

TypeNameDefaultDescription
Buildings.Controls.Continuous.NumberOfRequestsnumReq
Modelica.Blocks.Sources.Sinesine
Modelica.Blocks.Sources.Pulsepulse

Revisions

  • June 16, 2024, by Hongxiang Fu:
    Changed pulse input from 0 to 1 to 0.01 to 1. This is for #1897.
  • January 12, 2017, by Thierry S. Nouidui:
    Modified example to prevent simultaneous events This is for #646.
  • November 21, 2011, by Michael Wetter:
    Added documentation.