PLECS 3.7 Online Help

Sine Wave

Purpose

Generate time-based sine wave with optional bias

Library

Control / Sources

Description

pict

The Sine Wave block generates a sinusoidal output signal with an optional bias according to the equation

y = A ⋅sin(ω ⋅t+ φ)+ C       ω = 2πf

If a variable-step solver is used, the solver step size is automatically limited to ensure that a smooth waveform is produced.

Parameters

Amplitude
The amplitude A   of the sine wave signal.
Bias
The offset C   that is added to the sine wave signal.
Frequency
The frequency of the sine wave in hertz (f  ) or rad/second (ω  ), see below.
Phase
The phase φ   of the sine wave in rad, per unit (p.u.) or degrees, see below. The parameter value should be in the range [0 2π   ], [0 1] or [0 360] respectively.
Units for frequency and phase
The frequency and phase can be expressed in terms of (rad/sec, rad), (Hz, p.u.) or (Hz, degrees). If the phase is expressed in per unit (p.u.), a value of 1 is equivalent to the period length.

Probe Signal

Output
The block output signal.