blockSin
Generate sine signal
Information
Block that outputs a sine.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | amplitude | 1 | Amplitude of sine wave |
| Real | freqHz | Frequency of sine wave | |
| Real | phase | 0 | Phase of sine wave |
| Real | offset | 0 | Offset of output signal |
| Real | startTime | 0 | Output = offset for time < startTime |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | y | Sine output signal |
Revisions
-
November 8, 2024, by Michael Wetter:
Addedfinalkeyword to unit declaration as block is only valid for this unit.
Also addeddisplayUnitkeyword. -
April 13, 2023, by Michael Wetter:
Renamed block fromSinetoSinto 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 toModelica.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.