Sine with variable frequency and amplitude

Generate a sine signal with variable frequency and amplitude

 Description The Sine Variable Frequency and Amplitude (or Variable Sine Source) component has a real output $y$ that is a sinusoidal signal whose frequency and amplitude may be varied by real inputs:
 Equations $y=\mathrm{offset}+{\mathrm{amplitude}}_{\mathrm{internal}}\mathrm{cos}\left(\mathrm{\phi }\right)$ $\mathrm{der}\left(\mathrm{\phi }\right)=2\mathrm{\pi }{f}_{\mathrm{internal}}$ ${\mathrm{amplitude}}_{\mathrm{internal}}=\left\{\begin{array}{cc}\mathrm{constantAmplitude}& \mathrm{useConstantAmplitude}\\ \mathrm{amplitude}& \mathrm{otherwise}\end{array}$ ${f}_{\mathrm{internal}}=\left\{\begin{array}{cc}\mathrm{constantFrequency}& \mathrm{useConstantFrequency}\\ f& \mathrm{otherwise}\end{array}$

Connections

 Name Description Modelica ID $y$ Real output signal y $\mathrm{amplitude}$ Amplitude of sine wave amplitude $f$ frequency of sine wave f

Parameters

 Name Default Units Description Modelica ID $\mathrm{Use constant amplitude}$ $\mathrm{false}$ Use constant amplitude useConstantAmplitude $\mathrm{Constant amplitude}$ $1$ Constant amplitude constantAmplitude $\mathrm{Use constant frequency}$ $\mathrm{false}$ Use constant frequency useConstantFrequency $\mathrm{Constant frequency}$ $1$ $\mathrm{Hz}$ Constant frequency constantFrequency $\mathrm{offset}$ $0$ Offset of output signal offset

 Modelica Standard Library The component described in this topic is from the Modelica Standard Library. To view the original documentation, which includes author and copyright information, click here.