Note: This page has been translated by MathWorks. Please click here

To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.

Connection block from Simulink environment to RF physical blocks

Input/Output Ports sublibrary of the Physical library

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**Select one of the following options for interpreting the input Simulink signal:

`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 described in the physical model to which it connects.

**Finite impulse response filter length**Desired length of the baseband-equivalent impulse response for the physical model. 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.### Note

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 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`

) window. A value greater than or equal to 1 tells the Input Port block to use a hann window.The blockset uses the Signal Processing Toolbox™

`tukeywin`

function to generate the window. The following figure shows the resulting frequency-domain window for several values of the**Fractional bandwidth of guard bands**parameter.See Create a 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.

**Modeling delay (samples)**Number of time samples by which to delay the impulse response of the baseband-equivalent model to ensure that the baseband-equivalent model has a causal response.

See Create a 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 the modeling frequencies. See the Output Port block reference page for information about calculating the modeling frequencies.

**Sample time (s)**Time interval between consecutive samples of the input signal.

### Note

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.**Add noise**If you select this parameter, noise data in the RF physical blocks that are bracketed by the Input Port block and Output Port block is taken into consideration. If you do not select this parameter, noise data is ignored.

**Initial seed**Nonnegative integer specifying the initial seed for the random number generator the block uses 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.

Was this topic helpful?