Connection block from Simulink environment to RF physical blocks
RF Blockset / Equivalent Baseband / Input / Output Ports
The Input Port block is a connecting port from the Simulink®, or mathematical, part of the model to an RF physical part of the model. The Input Port block lets you provide the parameter data needed to calculate the modeling frequencies and the baseband-equivalent impulse response for the physical subsystem. It also lets you specify information about how to interpret the incoming Simulink signal.
For more information about how the Input Port block converts the mathematical Simulink signals to physical modeling environment signals, see Convert to and from Simulink Signals.
Some RF blocks use the sample time to perform baseband modeling calculations. To ensure the accuracy of these calculations, the Input Port block, as well as the mathematical RF blocks, compare the input sample time to the sample time you provide in the Input Port mask. If they do not match, or if the input sample time is missing because the blocks are not connected, an error message appears.
Treat input Simulink signal as— Options for interpreting the input
Source voltage(default) |
Incident power wave| scalar
Options for interpreting the input Simulink signal, specified as one of the following:
Incident power wave — Interpret the input signal as
the incident power wave of the RF system described in the physical model to which it
connects. When you select this option, the output signal of the RF system is the
transmitted power wave. This is the most common RF modeling interpretation.
Source voltage — Interpret the input signal as the
source voltage of the RF system described in the physical model to which it connects. As a
result, the baseband-equivalent model includes the loss through the source impedance. When
you select this option, the output signal of the RF system is the load voltage.
For more information about these options, see Convert to and from Simulink Signals.
Source impedance (ohms)— Source impedance of the RF network
50(default) | scalar
Source impedance of the RF network described in the physical model to which it connects, specified as a scalar in ohms.
Finite impulse response filter length— Desired length of the baseband-equivalent impulse response
128(default) | scalar
Desired length of the baseband-equivalent impulse response for the physical model, specified as a scalar. The longer the FIR filter in the time domain, the finer the frequency resolution in the frequency domain. The frequency resolution is approximately equal to 1/ (Finite impulse response filter length*Sample time (s)). For a graphical representation of this parameter, see Baseband-Equivalent Modeling.
The equivalent-baseband simulation algorithm uses the next power of 2 greater than the specified filter length in its calculations and then truncates the impulse response to the specified length. As a result, you get different results when you set the Finite impulse response filter length parameter to a number that is not a power of 2. For more information, see Calculate the Baseband-Equivalent Impulse Response.
Fractional bandwidth of guard bands— Fraction of modeling bandwidth
0(default) | scalar
Fraction of modeling bandwidth , specified as a scalar. Fraction of modeling bandwidth over which to taper the edges of the transfer function of the system when creating the baseband-equivalent model. This parameter defines the ratio of the bandwidth of sections that are tapered using a Tukey, or cosine-tapered, window to the bandwidth of the constant, or untapered, sections.
A value less than or equal to 0 tells the Input Port block to use a rectangular
rectwin (Signal Processing Toolbox)) window. A value greater than or equal to 1 tells the Input Port block to
use a hann window.
Modeling delay (samples)— Number of time samples by which to delay the impulse response of baseband-equivalent model
0(default) | scalar
Number of time samples by which to delay the impulse response of the baseband-equivalent
model, specified as a scalar. Setting
Modeling delay (samples) ensure that
the baseband-equivalent model has a causal response.
See Create Complex Baseband-Equivalent Model for information on how the Input Port block applies this delay to ensure a causal response.
Center frequency (Hz)— Center of modeling frequencies
2e9(default) | scalar
Center of the modeling frequencies, specified as a scalar. See the Output Port block reference page for information about calculating the modeling frequencies.
Sample time (s)— Time interval between consecutive samples
1e-7(default) | scalar
Time interval between consecutive samples of the input signal, specified as a scalar.
The Input Port block does not automatically inherit a sample time from its input signal. The specified Sample time (s) value must match the sample time of the input signal.
Input Processing— Specify type of processing mode
Elements as channels (sample based)(default) |
Columns as channels (frame based)
Specifying the type of processing mode the block performs as one of the following:
Elements as channels (sample based): Set the
Input processing to
Elements as channels (sample
based), if your block needs to process based on sample-based model. In
sample-based processing, blocks process signals one sample at a time. Each element of the
input signal represents one sample in a distinct channel.
Columns as channels (frame based): Set the Input
Columns as channels (frame based), if
your block needs to process based on frame-based model. In frame-based processing, blocks
process data one frame at a time. Each frame of data contains sequential samples from an
independent channel. Each channel is represented by a column of the input signal.
Add noise— Add noise data to block
Add noise data to block, specified as a
If you select this parameter, noise data in the RF physical blocks that are bracketed by
theInput Port block and Output Port block is taken into
consideration. If you do not select this parameter, noise data is ignored.
Initial seed— Initial seed for random number generator block
67987(default) | nonnegative integer
Initial seed for random number generator block to generate noise, specified as a nonnegative integer to generate noise. This parameter becomes visible if you select the Add noise parameter. If you specify the initial seed parameter with a variable, the initial seed changes each successive time you run a model.
To enable this parameter, select Add noise parameter.
The blockset uses the Signal Processing Toolbox™
tukeywin (Signal Processing Toolbox) function to generate the window. The following figure shows the resulting
frequency-domain window for several values of the Fractional bandwidth of guard
See Create Complex Baseband-Equivalent Model for information about how the Input Port block applies this window to reduce the Gibbs phenomenon (also known as ringing), and other artifacts in the baseband-equivalent model of the system.