Be the first to rate this file! 37 downloads (last 30 days) File Size: 9.32 KB File ID: #24088

Tektronix AFG3000 Series - MATLAB Driver and Example

by The Instrument Control Team

 

12 May 2009 (Updated 12 May 2009)

No BSD License  

Create a frequency sweep and source the signal to a Tek AFG3000 series - all from within MATLAB.

Download Now | Watch this File

File Information
Description

MATLAB is a software environment and programming language with over 1,000,000 users and supports Tektronix arbitrary/function generators only through its Instrument Control Toolbox.

MATLAB is used with Tektronix signal generators to generate arbitrary and standard waveforms, configure and control the instruments, build automated test applications, and analyze and visualize data from other instruments.

The ‘frequencysweep’ script connects to the Tektronix AFG and sets up a frequency sweep (enable the channel, sets start and stop frequencies, spacing, and sweep time). This ‘frequencysweep’ script was generated by Test & Measurement Tool, a graphical tool provided by Instrument Control Toolbox to allow users to configure and control instruments in MATLAB.
 
To execute this example, extract the files from the zip file and type ‘frequencysweep’ in the MATLAB command window. (Note: Change the VISA address in the frequencysweep.m file to the corresponding VISA address of the AFG.)

This driver was created with the MATLAB Instrument Driver Editor (midedit), a graphical tool provided by the Instrument Control Toolbox that allows users to create and customize their own instrument drivers. The syntax and commands were taken from the ‘AFG3000 Series Arbitrary/Function Generators 071-0639-00 Reference Manual.’ Most, but not all, functionalities were tested. You are welcome to extend the application and driver to your specific needs.

Note: This example was created and tested with a Tektronix AFG3252 Arbitrary Function Generator but should work for other Tektronix AFG 3000-series generators.

To download a Getting Started Guide for using MATLAB with your Tektronix instruments in 15 minutes, visit: http://www.mathworks.com/tektronix/start

Information on using MATLAB and Instrument Control Toolbox for configuring and controlling instruments is available at: http://www.mathworks.com/products/instrument
   
For additional information on using MATLAB with Tektronix instruments, including MATLAB examples, demos, drivers, and videos, visit: http://www.mathworks.com/tektronix

Required Products Instrument Control Toolbox
MATLAB release MATLAB 7.8 (R2009a)
Other requirements TekVISA 3.3 (or newer) –Available for download at: http://www.tektronix.com
Zip File Content  
Other Files frequencysweep.m,
tek_afg3000.mdd
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
12 May 2009

Moved prerequisite from description to Other Requirements. Added two new keywords. Updated model number (AFG7252 to AFG3252 in the Description).

Tag Activity for this File
Tag Applied By Date/Time
tektronix Roger Yeh 12 May 2009 11:51:19
afg3011 Roger Yeh 12 May 2009 11:51:19
afg3021b Roger Yeh 12 May 2009 11:51:19
afg3022b Roger Yeh 12 May 2009 11:51:19
afg3101 Roger Yeh 12 May 2009 11:51:19
afg3102 Roger Yeh 12 May 2009 11:51:19
afg3251 Roger Yeh 12 May 2009 11:51:19
afg3252 Roger Yeh 12 May 2009 11:51:19
3000 series Roger Yeh 12 May 2009 11:51:19
awg Roger Yeh 12 May 2009 11:51:19
function generator Roger Yeh 12 May 2009 11:51:19
instrument control Roger Yeh 12 May 2009 11:51:19
afg Roger Yeh 12 May 2009 11:51:19
afg3000 Roger Yeh 12 May 2009 13:42:47
signal generator Roger Yeh 12 May 2009 13:42:47
instrument driver Data Acquisition Team 28 Aug 2009 09:33:36
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com