Model constant envelope source

**Library:**RF Blockset / Circuit Envelope / Sources

The Continuous Wave block models a constant modulation on a carrier in the RF Blockset™ circuit envelope simulation environment. For an introduction to RF simulation, see the example, Simulate High Frequency Components.

The block implements the relation

$$v(t)={v}_{0}{e}^{j{\omega}_{k}t}$$

or

$$i(t)={i}_{0}{e}^{j{\omega}_{k}t}$$

at the carrier *ω _{k}*,
depending on the source type.

`Source type`

— Wave type`Ideal voltage`

(default) | `Ideal current`

| `Power`

`Ideal Voltage`

— The block simulates a constant voltage envelope*v*_{0}at the specified**Carrier frequencies**. The envelope has real and imaginary parts specified by the**Constant in-phase value**and**Constant quadrature value**parameters.`Ideal Current`

— The block simulates a constant current envelope*i*_{0}at the specified**Carrier frequencies**. The envelope has real and imaginary parts determined by the**Constant in-phase value**and**Constant quadrature value**parameters.`Power`

— The block simulates the constant voltage envelope$${v}_{0}=2\sqrt{{\text{P}}_{0}\text{Re}\left({Z}_{s}\right)}{e}^{j\frac{\pi}{180}\varphi}$$

where:

*P*_{0}is the value of the**Available power**parameter*Z*is the value of the_{s}**Source impedance (ohms)**parameter.*ϕ*is the value of the**Angle (degrees)**parameter.

`Constant in-phase value`

— In-phase modulations of carrier frequencies`0 V`

(default) | vector of real numbers | `V`

| `mV`

| `kV`

In-phase modulations for each of the **Carrier
frequencies**, specified as a vector of real numbers. Specify
the units from the corresponding drop-down list.

To enable this parameter, on the **Source type** tab,
choose `Ideal voltage`

or ```
Ideal
current
```

.

`Constant quadrature value`

— Quadrature modulations of carrier frequencies`0 V`

(default) | vector of real numbers | `V`

| `mV`

| `kV`

Quadrature modulations for each of the RF circuit carrier frequencies, specified as a vector of real numbers. Specify the units from the corresponding drop-down list.

To enable this parameter, on the **Source type** tab,
choose `Ideal voltage`

or ```
Ideal
current
```

.

`Source impedance(Ohm)`

— Input impedance of source`50`

(default) | positive real number | complex number Input impedance of source, specified as a positive real number or a
complex number. The complex number must contain real and imaginary parts
greater than or equal to `1e-18`

ohms.

To enable this parameter, on the **Source type** tab,
choose `Power`

.

`Available power`

— Input impedance of source`0 W`

(default) | vector of real numbers | `W`

| `mW`

| `dBW`

| `dBm`

Available power at the specified **Carrier frequencies**,
specified as a vector of real numbers. Specify the units from the drop-down
list. The default value is
`0`

`W`

.

To enable this parameter, on the **Source type** tab,
choose `Power`

. The default value is
`0`

`W`

`Angle(degrees)`

— Phase angle of power waves`0`

(default) | vector of real numbersPhase angle of power waves at the specified **Carrier
frequencies**, specified as a vector of real numbers. The
default value is `0`

degrees.

To enable this parameter, on the **Source type** tab,
choose `Power`

.

`Carrier frequencies`

— Carrier frequencies`0`

(default) | vector of real positive numbers | `Hz`

| `kHz`

| `MHz`

| `GHz`

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`

.

`Add phase noise`

— Add phase noise`off`

(default) | `on`

Select this parameter, to add phase noise to your system with continuous wave source.

`Phase noise frequency offset (Hz)`

— Phase noise frequency offset`0`

(default) | scalar | vector | matrixPhase noise frequency offset, specified as a scalar or vector or matrix with each element units in hertz.

If you specify a matrix, each column should correspond to a non-DC carrier frequency of the CW source. The frequency offset values must be bounded by the envelope bandwidth of the simulation. For more information see, Configuration.

To enable this parameter, select **Add phase noise**.

`Phase noise level (dBc/Hz)`

— Phase noise level`0`

(default) | scalar | vector | matrixPhase noise level, specified as a scalar or vector or matrix with element unit in decibel per hertz.

If you specify a matrix, each column should correspond to a non-DC carrier frequency of the CW source. The frequency offset values must be bounded by the envelope bandwidth of the simulation. For more information see, Configuration.

To enable this parameter, select **Add phase noise**.

`Automatically estimate impulse response duration`

— Automatically estimate impulse response duration`on`

(default) | `off`

Select this parameter to automatically calculate impulse response for
phase noise. Clear this parameter to manually specify the impulse response
duration using **Impulse response duration**.

`Impulse response duration`

— Impulse response duration`1e-10`

`s`

(default) | scalarImpulse response duration used to simulate phase noise, specified as a scalar in seconds. You cannot specify impulse response if the amplifier is nonlinear.

The phase noise profile resolution in frequency is limited by the duration of the impulse response used to simulate it. Increase this duration to improve the accuracy of the phase noise profile. A warning message appears if the phase noise frequency offset resolution is too high for a given impulse response duration, specifying the minimum duration suitable for the required resolution

To set this parameter, first clear **Automatically estimate
impulse response duration**.

`Ground and hide negative terminals`

— Ground RF circuit terminals`on`

(default) | `off`

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

By default, this option is selected.

You clicked a link that corresponds to this MATLAB command:

Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

Select web siteYou can also select a web site from the following list:

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

- América Latina (Español)
- Canada (English)
- United States (English)

- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)

- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)