blockSin

Generate sine signal

Information

Block that outputs a sine.

Sin.png

Parameters

TypeNameDefaultDescription
Realamplitude1Amplitude of sine wave
RealfreqHzFrequency of sine wave
Realphase0Phase of sine wave
Realoffset0Offset of output signal
RealstartTime0Output = offset for time < startTime

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.RealOutputySine output signal

Revisions

  • November 8, 2024, by Michael Wetter:
    Added final keyword to unit declaration as block is only valid for this unit.
    Also added displayUnit keyword.
  • April 13, 2023, by Michael Wetter:
    Renamed block from Sine to Sin to use consistent naming with Buildings.Controls.OBC.CDL.Reals.Sin.
    This is for Buildings, issue 3339
  • November 12, 2020, by Michael Wetter:
    Reformulated to remove dependency to Modelica.Units.SI.
    This is for Buildings, issue 2243.
  • March 2, 2020, by Michael Wetter:
    Changed icon to display dynamically the output value.
  • November 06, 2017, by Milica Grahovac:
    First CDL implementation.