CosineVariableFrequencyAndAmplitude

Generate cosine signal with variable frequency and amplitude

    CosineVariableFrequencyAndAmplitude

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

CosineVariableFrequencyAndAmplitude_0

NameLabelDescriptionData TypeValid Values

mo_useConstantAmplitude

useConstantAmplitude

Enable constant amplitude

Number

0
1

mo_constantAmplitude

constantAmplitude

Constant amplitude

Scalar

mo_useConstantFrequency

useConstantFrequency

Enable constant frequency

Number

0
1

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
false

mo_phi/start

start

Cell of scalars

CosineVariableFrequencyAndAmplitude_1

NameLabelDescriptionData TypeValid 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'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

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

See Also