blockCosineVariableFrequencyAndAmplitude
Generate cosine signal with variable frequency and amplitude
Extends from Interfaces.SO (Single Output continuous control block).
Information
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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | useConstantAmplitude | false | Enable constant amplitude |
| Real | constantAmplitude | 1 | Constant amplitude |
| Boolean | useConstantFrequency | false | Enable constant frequency |
| SI.Frequency | constantFrequency | 1 | Constant frequency |
| Real | offset | 0 | Offset of the sine wave |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealOutput | y (from SO) | Connector of Real output signal | |
| Blocks.Interfaces.RealInput | amplitude | Amplitude | |
| Blocks.Interfaces.RealInput | f | Frequency |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Angle | phi | Phase of the sine wave |