Instrument Control Toolbox

Waveform Generation and Analysis using LTE System Toolbox with Test and Measurement Equipment

This example shows how an over-the-air LTE waveform can be generated and analyzed using the LTE System Toolbox™, the Instrument Control Toolbox™, and an Agilent Technologies RF signal generator and analyzer.

Introduction

The LTE System Toolbox can be used to generate standard baseband IQ downlink test model (E-TM) waveforms and uplink and downlink reference measurement channel (RMC) waveforms. Using the LTE System Toolbox with the Instrument Control Toolbox allows LTE waveforms created in MATLAB® to be used with test and measurement hardware. Waveforms created by the LTE System Toolbox can be modulated for transmission using a signal generator. Waveforms captured using a signal analyzer can be analyzed using MATLAB and LTE System Toolbox functions.

In this example the Instrument Control Toolbox is used to interface with an RF signal generator and analyzer. An E-TM waveform, synthesized in MATLAB using the LTE System Toolbox, is downloaded to an Agilent Technologies N5172B signal generator for over-the-air transmission. The over-the-air signal is captured using an Agilent Technologies N9010A signal analyzer and retrieved into MATLAB for analysis.

The captured waveform can be analyzed using the LTE System Toolbox as demonstrated in the following examples:

This example illustrates how external test and measurement equipment can be used to analyze the received waveform; in this case Agilent Technologies Vector Signal Analysis (VSA) software.

Generate a Baseband Waveform using the LTE System Toolbox

The LTE System Toolbox provides GUIs and functions that generate test model waveforms as per [ 1 ]. lteTestModelToollteTestModelTool can be used to configure and create the signal using a GUI.

Alternatively, the functions lteTestModellteTestModel and lteTestModelToollteTestModelTool allow the programmatic configuration and generation of LTE test models and baseband IQ waveforms.

config = lteTestModel('1.1','5MHz');  % Test Model 1.1, 5MHz bandwidth
config.TotSubframes = 100;            % Generate 100 subframes
[waveform, tmgrid, config] = lteTestModelTool(config);

For more details on the LTE test model signal, refer to the accompanying LTE Downlink Test Model (E-TM) Waveform Generation example.

The frequency spectrum of the generated time domain waveform, waveform, can be viewed using the DSP System Toolbox™ spectrum analyzerspectrum analyzer. As expected, the 5MHz signal bandwidth is clearly visible at baseband.

% Calculate the spectral content in the LTE signal
hSpecAnalTx = dsp.SpectrumAnalyzer('SampleRate', config.SamplingRate, ...
    'SpectrumType', 'Power density', 'PowerUnits', 'dBm', ...
    'RBWSource', 'Property',   'RBW', 15e3, ...
    'FrequencySpan', 'Span and center frequency', ...
    'Span', 7.68e6, 'CenterFrequency', 0, ...
    'Window', 'Rectangular', 'SpectralAverages', 10, ...
    'YLimits', [-100 -60], 'YLabel', 'PSD', ...
    'Title', 'Test Model E-TM1.1, 5 MHz Signal Spectrum', ...
    'ShowLegend', false);
step(hSpecAnalTx, waveform);

Generate an Over-the-Air Signal using an RF Signal Generator

The Instrument Control Toolbox is used to download and play the test model waveform created by the LTE System Toolbox, waveform, using the Agilent Technologies N5172B signal generator. This creates an RF LTE signal with a center frequency of 1GHz. Note 1GHz was selected as an example frequency and is not intended to be a recognized LTE channel.

% Download the baseband IQ waveform to the instrument. Generate the RF
% signal at a center frequency of 1GHz and output power of 0dBm.
% hDownloadAndPlayWaveformUsingN5172B( ...
%   'A-N5172B-50283.dhcp.mathworks.com', waveform, ...
%   config.SamplingRate, 1e9, 0);

Inspect the function hDownloadAndPlayWaveformUsingN5172B.mhDownloadAndPlayWaveformUsingN5172B.m for more details on the commands used to download and play the waveform.

The frequency spectrum of the RF signal transmitted by the signal generator can be viewed using a spectrum analyzer tuned to the 1GHz center frequency. The screen capture below, from an Agilent Technologies N9010A signal analyzer, clearly shows the 5MHz signal bandwidth.

Acquire the Baseband Signal in MATLAB from a Signal Analyzer

To analyze the over-the-air transmission in MATLAB, the Instrument Control Toolbox is used to configure the Agilent N9010A signal analyzer and capture baseband IQ data. The helper function hCaptureIQUsingN9010A.mhCaptureIQUsingN9010A.m retrieves the baseband IQ data, IQData, and the sample rate, sampleRate, from the signal analyzer, ready for analysis in MATLAB.

% [IQData, sampleRate] = hCaptureIQUsingN9010A( ...
%     'A-N9010A-21026.dhcp.mathworks.com', config.TotSubframes*1e-3, ...
%     1e9, 5e6, false, 990e6, 1010e6, 200e3, 200e3);

Inspect the function hCaptureIQUsingN9010A.mhCaptureIQUsingN9010A.m for more details on input parameters and the commands needed to configure the Agilent Technologies N9010A signal analyzer and retrieve the data.

Note the returned sampling rate from the instrumentation hardware is different than the configured sampling rate. This is valid for measurements using Agilent Technologies VSA software, but actual signal decoding would require a resampling of the acquired data.

The captured baseband IQ data from the signal analyzer, IQData, is stored in a MAT file along with system parameters for use with Agilent Technologies VSA software.

% MAT file interface parameters
% FreqValidMax = 1.010e9;
% FreqValidMin = 9.90e8;
% InputCenter = 1e9;
% XDelta = 1/sampleRate;
% Y = IQData;
%
% Common set with fixed values
% IQ = 0;
% InputRefImped = 50;
% InputZoom = 1;
% XDomain = 2;
% XStart = 0;
% XUnit = 'Sec';
% YUnit = 'V';
%
% Save the variables for subsequent up-loading into VSA.
% save('DownlinkTestModel1p1FDD5MHz_Rx.mat', 'FreqValidMax', 'FreqValidMin',...
%      'IQ', 'InputCenter', 'InputRefImped', 'InputZoom', 'XDelta', ...
%      'XDomain', 'XStart', 'XUnit', 'Y', 'YUnit');

Plotting the frequency spectrum of the retrieved time domain baseband waveform, Y, using the DSP System Toolbox spectrum analyzerspectrum analyzer shows the expected 5MHz occupied bandwidth, with impairments due to RF transmission and reception.

load('DownlinkTestModel1p1FDD5MHz_Rx.mat');
hSpecAnalRx = dsp.SpectrumAnalyzer('SampleRate', 1/XDelta, ...
    'SpectrumType', 'Power density', 'PowerUnits', 'dBm', ...
    'RBWSource', 'Property',   'RBW', 15e3, ...
    'FrequencySpan', 'Span and center frequency', ...
    'Span', 7.68e6, 'CenterFrequency', 0, ...
    'Window', 'Rectangular', 'SpectralAverages', 10, ...
    'YLimits', [-120 -70], 'YLabel', 'PSD', ...
    'Title', 'Received Signal Spectrum: E-TM1.1, 5 MHz', ...
    'ShowLegend', false);
step(hSpecAnalRx, Y);

Analyze the Received LTE Signal

The captured waveform can be analyzed using the LTE System Toolbox as demonstrated in the following examples:

The MAT file containing the retrieved data is loaded into Agilent Technologies VSA software and LTE specific measurement are made. The screenshots of the interactive displays from the VSA software confirms the waveform characteristics of the E-TM1.1 test model in terms of the occupied bandwidth, number of resource blocks used per channel and signal, their corresponding power levels and low EVM values due to the minimal impairments modeled.

Appendix

This example uses the following helper functions:

Note code snippets that interact with the Agilent Technologies instruments and software are commented out in the above sections.

Selected Bibliography

  1. 3GPP TS 36.141. "Base Station (BS) conformance testing." 3rd Generation Partnership Project; Technical Specification Group Radio Access Network; Evolved Universal Terrestrial Radio Access (E-UTRA).