WOLFRAM SYSTEM MODELER

CosineVariableFrequencyAndAmplitude

Generate cosine signal with variable frequency and amplitude

Diagram

Wolfram Language

In[1]:=
SystemModel["Modelica.Blocks.Sources.CosineVariableFrequencyAndAmplitude"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

This signal source provides a cosine signal with variable frequency f and variable amplitude, i.e. the phase angle of the cosine 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 (5)

useConstantAmplitude

Value: false

Type: Boolean

Description: Enable constant amplitude

constantAmplitude

Value: 1

Type: Real

Description: Constant amplitude

useConstantFrequency

Value: false

Type: Boolean

Description: Enable constant frequency

constantFrequency

Value: 1

Type: Frequency (Hz)

Description: Constant frequency

offset

Value: 0

Type: Real

Description: Offset of the sine wave

Connectors (5)

y

Type: RealOutput

Description: Connector of Real output signal

amplitude

Type: RealInput

Description: Amplitude

f

Type: RealInput

Description: Frequency

amplitude_internal

Type: RealInput

Description: Amplitude

f_internal

Type: RealInput

Description: Frequency

Components (2)

amplitude_constant

Type: Constant

Description: Generate constant signal of type Real

f_constant

Type: Constant

Description: Generate constant signal of type Real

Used in Examples (2)

Modulation

Modelica.Blocks.Examples

Demonstrate amplitude modulation an frequency modulation

SinCosEncoder

Modelica.Blocks.Examples

Evaluation of a sinusoidal encoder