# Sinusoid

Model DC offset and sinusoidal modulation

• Library:
• RF Blockset / Circuit Envelope / Sources

## Description

The Sinusoid block implements a voltage or current source that provides a DC offset and sine wave modulation. This block can be used with each listed block carrier in the circuit envelope environment.

The block implements the following voltage (or current) relationships for the in-phase (ui), and quadrature (uq), components of the kth listed block carrier:

`$\begin{array}{l}{u}_{k,i}\left(t\right)={D}_{i}+{A}_{i}\mathrm{sin}\left({w}_{k}\left(t-\tau \right)\right)\\ {u}_{k,q}\left(t\right)={D}_{q}+{A}_{q}\mathrm{sin}\left({w}_{k}\left(t-\tau \right)\right)\end{array}$`

where:

• Di and Dq are DC offsets.

• Ai and Aq are in-phase and quadrature amplitudes.

• τ is the time delay.

• ωk is the specified modulation frequency at a given carrier frequency fk.

• t is the time.

### Note

Sinusoid block does not support frame-based processing (supported by the Configuration blocks) as it uses SL Sine wave block. This block errors if the Samples per frame is more than 1 in the configuration block.

## Parameters

expand all

Wave type, specified as:

• `Ideal Voltage` — The block simulates a voltage envelope v(t) at the specified Carrier frequencies.

• `Ideal Current` — The block simulates a current envelope i(t) at the specified Carrier frequencies.

In-phase offset for each of the RF circuit carrier frequencies, specified as a vector of real or complex numbers. Specify the units from the corresponding drop-down list. The units are in volts for ```Ideal Voltage``` and amperes for `Ideal Current`.

Quadrature offset for each of the RF circuit carrier frequencies, specified as a vector of real or complex numbers. Specify the units from the corresponding drop-down list. The units are in volts for ```Ideal Voltage``` and amperes for `Ideal Current`.

In-phase amplitude, specified as a vector of real number or a complex number. Specify the units from the corresponding drop-down list. The units are in volts for `Ideal Voltage` and amperes for `Ideal Current`.

Quadrature amplitude, specified as a vector of real number or a complex number. Specify the units from the corresponding drop-down list. The units are in volts for `Ideal Voltage` and amperes for `Ideal Current`.

Modulation frequency at each of the RF circuit carrier frequencies, specified as a vector of real number or a complex number. Specify the units from the corresponding drop-down list. Th

Time delay of modulation, specified as a vector of positive numbers. Specify the units from the corresponding drop-down list.

Carrier frequencies, specified as a vector of real positive numbers. The elements in the carrier frequencies are combinations of fundamental tones and corresponding harmonics in the Configuration block. The default value is `0` `Hz`.

Select this parameter to ground and hide the negative terminals. To expose the negative terminals, clear the parameter. By exposing these terminals, you can connect them to other parts of your model.

By default, this option is selected.

## See Also

#### Model RF Power Amplifiers and Increase Transmitter Linearity with DPD Using MATLAB

Download white paper