SineWaveGenerator

This block is a sine wave generator : y(t) = M*sin(F*t+P)+Offset.

    SineWaveGenerator

Library

SignalGenerators

Description

This block generates a sine wave following the equation: y(t) = M*sin(F*t+P)+Offset, where magnitude (M), frequency (F), phase shift (P) and offset (Offset) are block parameters. Parameters are real values, either scalar or matrix. If a parameter is scalar, it applies to all signals. If a parameter is a vector its size must be consistent with other parameters.

Parameters

SineWaveGenerator_0

NameLabelDescriptionData TypeValid Values

M

Magnitude

Amplitude of the sine wave. Real value.

Matrix

F

Frequency (rad/s)

Frequency of the signal. Real strictly-positive value.

Matrix

P

Phase (rad)

Phase shift. Real value.

Matrix

offs

Offset

Signal offset. Real value.

Matrix

externalActivation

External activation

Specifies whether the block receives an external activation or inherits its activation through its regular input ports. When External Activation is selected, an additional activation port is added to the block. By default, external activation is not selected.

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

output

1

Port 2

activation

input

externalActivation

Advanced Properties

NameValueDescription

always active

yes

Time dependency depends on block parameters.

direct-feedthrough

no

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no