blockPulse

Generate pulse signal of type Boolean

Information

Block that outputs a pulse signal as shown below.

BooleanPulse.png

The pulse signal is generated an infinite number of times, and aligned with time=shift.

Parameters

TypeNameDefaultDescription
Realwidth0.5Width of pulse in fraction of period
RealperiodTime for one period
Realshift0Shift time for output

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.BooleanOutputyOutput with pulse value

Revisions

  • December 03, 2020, by Milica Grahovac:
    Renamed delay parameter to shift.
    This is for Buildings, issue 2282.
  • November 12, 2020, by Michael Wetter:
    Reformulated to remove dependency to Modelica.Units.SI.
    This is for Buildings, issue 2243.
  • October 19, 2020, by Michael Wetter:
    Refactored implementation, avoided state events.
    This is for Buildings, issue 2170.
  • September 8, 2020, by Milica Grahovac:
    Enabled specification of number of periods as a parameter.
  • September 1, 2020, by Milica Grahovac:
    Revised initial equation section to ensure expected simulation results when startTime is before simulation start time. This is for Buildings, issue 2110.
  • March 23, 2017, by Jianjun Hu:
    First implementation, based on the implementation of the Modelica Standard Library.