Use Wireless Waveform Generator App
The Wireless Waveform Generator app is an interactive tool for creating, impairing, visualizing, and exporting modulated waveforms.
Start the app. On the Apps tab in the MATLAB® toolstrip, under Signal Processing and Communications,
click the app icon . You can also start the app by entering
wirelessWaveformGenerator at the MATLAB command prompt.
These are the typical workflows when using the Wireless Waveform Generator app.
Generate a waveform.
Select the desired waveform type from the options available in the Waveform Type section. Adjust the configuration parameters in the Waveform pane. For more information, see Waveform Type.
Select Impairments in the Generation section to open the Impairments pane. Adjust the configuration parameters in the Impairments pane. For more information, see Add Impairments.
To perform signal generation, click Generate. After generation, the waveform is displayed. You can adjust the waveform, filtering, and impairment configurations and then regenerate the waveform.
The default visualization plots vary based on the waveform type selected. Additional Visualization Options can be opened by selecting them from Visualize in the Generation section.
After generating a waveform you can export it by selecting the desired options from Export in the Export section. For more information, see Export Waveform.
You can save the current session, open a previously saved session, or open a new session by selecting the desired option in the File section. For more information, see Waveform Generator Session.
To generate the various available waveforms, the Wireless Waveform Generator app uses Communications Toolbox™ features. The supported waveform types include:
OFDM — The app uses the
comm.OFDMModulatorSystem object™ to generate this type of waveform.
QAM — The app uses the
qammodfunction to generate this type of waveform.
PSK — The app uses the
pskmodfunction to generate this type of waveform.
Sinewave — The app uses the
dsp.SineWaveSystem object to generate this type of waveform.
LTE — If you have the LTE Toolbox™ you can also generate LTE modulated waveforms using features in the LTE Toolbox. For more information, see the LTE Waveform Generator (LTE Toolbox) app reference page.
WLAN — If you have the WLAN Toolbox™ you can also generate 802.11™ modulated waveforms using features in the WLAN Toolbox. For more information, see the WLAN Waveform Generator (WLAN Toolbox) app reference page.
Bluetooth® — You can download and install the Communications Toolbox Library for the Bluetooth Protocol add-on to generate waveforms using features described in Bluetooth.
By default, generated waveforms have no filtering applied. To apply filtering to the waveform, select the desired filter option from the Filtering parameter on the Waveform pane. The available filter options vary based on the waveform type you select.
You can add these impairments to the waveform that you generate.
AWGN — The app uses the
awgnfunction to impair the waveform.
Phase offset — The app impairs the waveform by applying the specified phase offset as y = xejφ, where φ is the phase offset in radians.
Frequency offset — The app uses the
comm.PhaseFrequencyOffsetSystem object to impair the waveform.
Phase noise — The app uses the
comm.PhaseNoiseSystem object to impair the waveform.
DC offset — The app impairs the waveform by applying the specified DC offset as y = x + dcOff, where dcOff is the complex DC offset in Volts.
IQ imbalance — The app uses the
iqimbalfunction to impair the waveform.
Memoryless cubic nonlinearity — The app uses the
comm.MemorylessNonlinearitySystem object to impair the waveform.
You can use these plot types to visualize waveforms that you generate.
Spectrum Analyzer — The app plots the waveform in the frequency domain.
OFDM Grid — For OFDM waveforms, the app plots the resource allocation of data and control channels.
Time scope — The app plots the inphase and quadrature (IQ) waveform samples in the time domain.
Constellation diagram — The app plots the constellation points of the modulation symbols.
You can export the waveform to a runnable MATLAB script or Simulink® block., to your workspace, or to a signal file.
Use the exported script to generate your waveform without the app from the command line.
Use the exported block as a waveform source in a Simulink model. For more information, see Waveform From Wireless Waveform Generator App.
Waveforms exported to the workspace are saved as a structure containing these fields:
type— This field is a character vector indicating the waveform type.
config— This field is a structure or object containing fields that specify the configured waveform type.
Fs— This field is the signal sample rate in Hertz.
waveform— The field is the complex waveform samples output as an NS-by-1 column vector or an NS-by-NT matrix. NS is the number of time-domain samples, and NT is the number of transmit antennas.
Waveforms exported to a signal file can be saved as a .mat or .bb file.
Transmit Using Lab Test Instrument
Generate a waveform that you can transmit using a connected lab test instrument. The
Generator app can transmit using instruments supported by the
rfsiggen (Instrument Control Toolbox) function.
Waveform Generator Session
You can save the current session, open a previously saved session, or open a new session by selecting the desired option in the FILE section. When you save a waveform generator session, the session configuration is saved as a .mat file. For more information, see MAT-File Versions.