CosineVariableFrequencyAndAmplitude
Generate cosine signal with variable frequency and amplitude
Library
Modelica/Blocks/Sources
Description
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
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_useConstantAmplitude | useConstantAmplitude | Enable constant amplitude | Number | 0 |
mo_constantAmplitude | constantAmplitude | Constant amplitude | Scalar | |
mo_useConstantFrequency | useConstantFrequency | Enable constant frequency | Number | 0 |
mo_constantFrequency | constantFrequency | Constant frequency | Scalar | |
mo_offset | offset | Offset of the sine wave | Scalar | |
mo_phi | phi | phi | Structure | |
mo_phi/fixed | fixed | Cell of scalars | true | |
mo_phi/start | start | Cell of scalars |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo__nmodifiers | Number of Modifiers | Specifies the number of modifiers | Number | |
mo__modifiers | Modifiers | Add new modifier | Structure | |
mo__modifiers/varname | Variable name | Cell of strings | ||
mo__modifiers/attribute | Attribute | Cell of strings | 'start' | |
mo__modifiers/value | Value |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
y | implicit | Connector of Real output signal | output | 1 |
Port 2 | implicit | Amplitude | input | 1-mo_useConstantAmplitude |
Port 3 | implicit | Frequency | input | 1-mo_useConstantFrequency |