MATLAB® is a software environment and programming language with over 1,000,000 users and supports Tektronix® Arbitrary Waveform Generators through its Instrument Control Toolbox.
One of today’s most challenging design problems in RF technologies, as well as other wireless applications, is the creation of stimulus signals that can fully exercise a prototype. Complex high-frequency modulated signals with jitter, spread spectrum clocking, and other time-variant effects require a benchtop of pulse, function, modulation and RF generators. Using MATLAB® to generate such a signal and output it through a Tektronix® Arbitrary Waveform Generator replaces the need for all that equipment.
The ‘generate_arb_waveform_Tektronix’ script connects to the Tektronix® AWG, resets it, puts the waveform onto channel 1 of the instrument by calling the ‘chirp_signal’ function, enables channel 1 output, and disconnects the instrument. This ‘generate_arb_waveform_Tektronix’ script was generated by Test & Measurement Tool, a graphical tool provided by Instrument Control Toolbox that allows the user to configure and control instruments in MATLAB®.
To execute this example, extract the files from the zip file and type ‘generate_arb_waveform_Tektronix’ in the MATLAB® command window. Notes: Change the IP address in the generate_arb_waveform_Tektronix.m file to the IP address of the AWG. If the Signal Processing Toolbox is not installed, replace the CHIRP function in chirp_signal.m with a different function.
1. TekVISA 3.3 (or newer) – Available for download at:
2. IVI Shared Components – Available for download on the IVI foundation website at: http://www.ivifoundation.org/Downloads/SharedComponents.htm
3. Tektronix® AWG5000 and AWG7000 IVI-COM instrument driver – Available for download at:
4. MATLAB® instrument driver for the Tektronix® AWG5000 and AWG7000 Series – Created by Tektronix® and available for download on MATLAB Central at:
This example was created and tested with a Tektronix® AWG7101 Arbitrary Waveform Generator but should work for other Tektronix® generators in the AWG5000 and AWG7000 series including the AWG5002, AWG5004, AWG5012, AWG5014, AWG7101, AWG7102, AWG7051, and AWG7052.
To download a Getting Started Guide for using MATLAB® with your Tektronix® instruments in 15 minutes, visit:
Information on using MATLAB® and Instrument Control Toolbox for configuring and controlling instruments is available at:
For additional information on using MATLAB® with Tektronix® instruments, including MATLAB® examples, demos, drivers, and videos, visit:
Roger Yeh (2021). Waveform Generation with Tektronix® AWG5000 and AWG7000 Series – MATLAB® Example (https://www.mathworks.com/matlabcentral/fileexchange/22688-waveform-generation-with-tektronix-awg5000-and-awg7000-series-matlab-example), MATLAB Central File Exchange. Retrieved .
Your getting started link is not for an AWG.
I can get the latest driver (5.0.12_0) to work with matlab (device creation and connection, basic command such as reset, or trigger source external) but when I try to send :
invoke(groupObj, 'SendWaveformReal', 'chirp', chirp_signal);
I end up with an error message :
??? Error using ==> icgroup.invoke at 90
Error: Invalid index.
Any idea ?
I can't get it to work (the IVI-COM driver). Anyone knows of a fix / update?
Re: "Thanks for this! Unfortunately, the IVI-COM driver from Tektronix no longer works with Matlab. Tektronix states this in the readme file with the download."
Can anyone corrorborate this?
Thanks for this! Unfortunately, the IVI-COM driver from Tektronix no longer works with Matlab. Tektronix states this in the readme file with the download.
Brillian stuff! Thanks for sharing.
Inspired by: Tektronix AWG 5000 and AWG 7000 Series - Driver
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!