Convert Simulink input signal to RF Blockset signal
RF Blockset / Circuit Envelope / Utilities
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.
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 simulink input signals into an RF signal suitable for multicarrier simulation:
The Source type parameter specifies the Simulink signal as either current, or voltage, or power source.
Source type
— Inport block interpretation of Simulink signalIdeal voltage
(default) | Ideal current
| Power
Inport block interpretation of 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.
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.
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.
The voltage v(t) is a scaling of the Simulink signal vSL(t):
In the preceding equation, Zs is the value of the Source impedance (ohms) parameter.
The generator delivers real power to the load Zl:
When Zl = Zs*, this generator delivers the available power |vSL(t)|2.
Source impedance (Ohm)
— Source impedance for available power match50
(default) | vector of positive integers Source impedance for available power match, specified as a vector of positive integers in ohms
To enable this parameter, select Power
in Source
type.
Carrier frequencies
— Carrier frequencies0 Hz
(default) | vector of positive integersCarrier frequencies, specified as a vector of positive integers in Hz. In carrier frequencies, the elements are a combination of fundamental tones and corresponding harmonics in the Configuration block.
Ground and hide negative terminals
— Ground RF circuit terminalson
(default) | off
Ground RF circuit terminals, specified as a on
or off
.
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.
Using the Inport block you can specify the complex envelopes of your input signals and import them as RF signals for multi-carrier simulation.
The Configuration block automatically determines the fundamental tones specified in the input ports and proposes a suitable harmonic order to capture the non-linearity of the system. You can also manually specify the harmonic order for each fundamental tone in the simulation.
In the input port, you can specify as many carrier frequencies as you want. It is recommended that you trade off the simulation bandwidth (inversely proportional to the simulation time step) and the total number of simulation frequencies.
The Inport block allows you to specify the complex envelopes of your input signals and import them as RF signals for multi-carrier simulation.
The power option automatically insert a source or load impedance in your network, and normalizes the signal power with respect to the specified impedance. You do not need to manually insert source and load terminations, and your signals are automatically scaled between RF Blockset and the Simulink environment that assumes an implicit 1 Ohm reference impedance.
When using voltage sources and sensors, manually add source and load terminations, otherwise there might be an undesired impedance mismatch in your network. When you measure the power of a voltage signal, make sure that you use a 50Ohm reference impedance.
If you use an ideal voltage source and add a source impedance, in perfectly matched conditions, the actual voltage applied to the first block of the RF chain is half of the value of the input Simulink signal. The source impedance and the input impedance of the first block of the RF chain form a voltage divider network.
Input signal is a digital communication complex equivalent baseband signal
(I,Q). You assume an implicit carrier for the system that is equal to the
carrier frequency, Fc
. You want to
model RF effects such as amplifier nonlinearity and S-parameter filters using
RF Blockset:
Enter Fc
in the
Carrier Frequencies parameter.
The simulation step size in the configuration block is the same as the sample time of the Simulink input signal, and it is not related to the carrier frequency.
If the RF chain does not include any modulator or demodulator, use
an Outport block at the
end of the chain. You can use the Outport
block
to probe the complex equivalent signal centered on
Fc
.
Input signal is a digital communication complex input baseband signal (I,Q).
You assume that no carrier is associated with the input signal. You want to
upconvert the signal to Fc
and model
RF effects such as amplifier nonlinearity and S-parameter filters:
Use to two Inport blocks for the I and Q components
of the input signal. Set the Carrier
Frequencies parameter of each Inport
block to 0
To upconvert the signal, use an IQ Modulator block. Set
the Local oscillator frequency to
Fc
.
The simulation step size in the configuration block is the same as the sample time of the Simulink input signal, and it is not related to the Local Oscillator frequency.
Use an Outport block at the
end of the chain. and probe the signal at
Fc
.
Input signal is a digital communication complex equivalent baseband signal (I,Q). You want to first upconvert the signal to intermediate frequency (IF), then to RF, and model RF imperfections:
Input signal is a digital or analog real passband signal that is explicitly modulated to high frequency in Simulink domain:
Set the Carrier Frequencies parameter of each
Inport block to 0
and simulate
RF effects.
The simulation step size in the configuration block is the same as the sample time of the Simulink input signal, and it is proportional to the RF frequency.
However there is no speed benefit in using RF Blockset for real-passband simulation. This option is not recommended