Main Content

Inport

Convert Simulink input signal to RF Blockset signal

  • Inport block

Libraries:
RF Blockset / Circuit Envelope / Utilities

Description

The Inport block imports Simulink® signals into the RF Blockset™ circuit envelope simulation environment. For an introduction to RF simulation, see the example, Simulate High Frequency Components. You can also modulate an input signal onto a square carrier wave in the RF Blockset circuit envelope simulation environment.

Complex-valued input signals Ik(t) + j · Qk(t) are the modulations at the frequencies {fk} specified in the Carrier frequencies parameter of the block. The input port converts the complex-valued input signals into an RF signal suitable for multicarrier simulation:

out=Real(k=1N(Ik(t)+j·Qk(t))·ej2πfkt)

The Source type parameter specifies the Simulink signal as either current, or voltage, or power source. For more information, see How to Use Inport Block. Inport block mask icons are dynamic and show the current type of source. This table shows you how the icons on this block vary based on the type of source you set on the Source type parameter on the block.

Source type: Ideal voltageSource type: Ideal currentSource type: Power

Inport block icon with Source type is set to Ideal voltage.

Inport block icon with Source type is set to Ideal current.

Inport block icon with Source type is set to Ideal current.

Parameters

expand all

Inport block interpretation of a Simulink signal, specified as:

  • Ideal voltage — The block outputs Simulink signals as voltage signals v(t) in the RF Blockset environment. When you choose an ideal voltage input port you need to manually add a series of source impedance to match the blocks connected to the input port. The following figure illustrates the internal configuration of the block.

    Internal configuration of the Inport block with voltage source, v(t).

  • Ideal current — The block outputs Simulink signals as current signals i(t) in the RF Blockset environment. When you use an ideal current input port, you manually add a parallel source impedance to match the blocks connected to the input port. The following figure illustrates the internal configuration of the block.

    Internal configuration of the Inport block with current source, i(t).

  • Power — The block interprets the Simulink signals, Pv(t), as available power and internally uses a voltage source, and series impedance. You use this option to import a 50 ohm environment or different reference impedance signals created using Communications Toolbox™. When you select this option, the input port automatically inserts a source impedance in your circuit as shown in the following figure.

    Source impedance, Zs with voltage source, v(t).

    The voltage v(t) is a scaling of the Simulink signal vSL(t):

    v(t)=2Re(Zs)vSL(t)

    In the preceding equation, Zs is the value of the Source impedance (Ohm) parameter.

    The generator delivers real power to the load Zl:

    Pload=|v(t)|2Re(Zs)|Zs+Zl|2

    When Zl = Zs*, this generator delivers the available power |vSL(t)|2.

Source impedance for available power match, specified as a vector of positive integers in ohms

Dependencies

To enable this parameter, select Power in Source type.

Carrier frequencies, specified as a vector or scalar in Hz, kHz, MHz, or GHz. Specify Carrier frequencies as a positive scalar greater than 0 when you select the Use Square Wave parameter. In carrier frequencies, the elements are a combination of fundamental tones and corresponding harmonics in the Configuration block.

Select this parameter to modulate your input signal onto a square carrier wave.

Plot the simulation frequencies of the square carrier wave and the approximate square wave with RSM error.

Dependencies

To enable this parameter, select Use Square Wave.

Number of Fourier coefficients required to modulate an input signal onto a square carrier wave, specified as an integer greater than or equal to 1.

Dependencies

To enable this parameter, select Use Square Wave.

DC bias, specified as a real number.

Dependencies

To enable this parameter, select Use Square Wave.

Duty cycle of a square carrier wave, specified as a positive integer between 0 and 100 in %.

Dependencies

To enable this parameter, select Use Square Wave.

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

More About

expand all

Algorithms

expand all

Version History

Introduced in R2010b

expand all