blockSineVariableFrequencyAndAmplitude

Generate sine signal with variable frequency and amplitude

Extends from Interfaces.SO (Single Output continuous control block).

Information

This signal source provides a sinusoidal signal with variable frequency f and variable amplitude, i.e. the phase angle of the sine wave is integrated from 2*π*f.

Note that the initial value of the phase angle phi defines the initial phase shift, and that the parameter startTime is omitted since the voltage can be kept equal to offset with setting the input amplitude to zero.

Parameters

TypeNameDefaultDescription
BooleanuseConstantAmplitudefalseEnable constant amplitude
RealconstantAmplitude1Constant amplitude
BooleanuseConstantFrequencyfalseEnable constant frequency
SI.FrequencyconstantFrequency1Constant frequency
Realoffset0Offset of the sine wave

Connectors

TypeNameDefaultDescription
RealOutputy (from SO)Connector of Real output signal
Blocks.Interfaces.RealInputamplitudeAmplitude
Blocks.Interfaces.RealInputfFrequency

Components

TypeNameDefaultDescription
SI.AnglephiPhase of the sine wave