blockSine

Generate sine signal

Extends from Interfaces.PartialClockedSO (Block with clocked single output Real signal).

Information

The block is similar to the block in Modelica.Blocks.Sources.Sine, but adapted to work in clocked partitions (by internal sampling of the continuous time variable).

The Real output y is a sine signal:

Sine.png

Example

See model Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.

Parameters

TypeNameDefaultDescription
Realamplitude1Amplitude of sine wave
SI.FrequencyfFrequency of sine wave
SI.Anglephase0Phase of sine wave
Realoffset0Offset of output signal
SI.TimestartTime0Output = offset for time < startTime

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealOutputy (from PartialClockedSO)Connector of clocked, Real output signal