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:

Example

See model Modelica_Synchronous.Examples.Elementary.RealSignals.TimeBasedSine.

Parameters

TypeNameDefaultDescription
Realamplitude1Amplitude of sine wave
Modelica.SIunits.FrequencyfreqHzFrequency of sine wave
Modelica.SIunits.Anglephase0Phase of sine wave
Realoffset0Offset of output signal
Modelica.SIunits.TimestartTime0Output = offset for time < startTime

Connectors

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