Be the first to rate this file! 21 downloads (last 30 days) File Size: 16.91 KB File ID: #16402

MATLAB GUI Example for Agilent N8241A Arbitrary Waveform Generator

by Gautam Vallabha

 

16 Sep 2007 (Updated 24 Sep 2007)

Code covered by the BSD License  

Agilent N8241A MATLAB GUI

Download Now | Watch this File

File Information
Description

MATLAB supports Agilent arbitrary waveform generators through the Instrument Control Toolbox.

This example demonstrates how you can use MATLAB to develop a GUI application for configuring an Agilent N8241A Arbitrary Waveform Generator. The GUI allows you to configure sinusoids and pulse trains of varying frequency, and to step automatically through a sequence of frequency values. It also has a "simulate" mode that allows you to explore the GUI without an actual instrument (the generated waveforms and AWG status are displayed a separate figure window).

To run the application, save the files in the associated ZIP file, and do one of the following:

>> agilentFcnGen('simulate'); % to run the application with a simulated AWG

>> agilentFcnGen(visaResourceString); % give the VISA resource string of the AWG

You may use this application with your AWG using the built-in waveforms. You are also welcome to modify the application (free-of-charge) for other instruments or to write your own waveform generation routines providing you also post your modified version of this MATLAB AWG application on MATLAB Central for others to use. Contact me if you need to waive this requirement.

Information on using MATLAB and Instrument Control Toolbox for instrument control and configuration is available at:
http://www.mathworks.com/products/instrument

This example requires VISA software and the MATLAB instrument driver for the Agilent N8241A Arbitrary Waveform Generator. The MATLAB instrument driver is available from MATLAB Central. Further information is available at:
http://www.mathworks.com/products/instrument/supportedio13760.html

Note: This web page also includes MATLAB demos, videos, and information on drivers for other instruments.

Required Products Instrument Control Toolbox
MATLAB release MATLAB 7.4 (R2007a)
Other requirements * VISA software * The MATLAB instrument driver for the Agilent N8241A Arbitrary Waveform Generator (also available from MATLAB Central).
Zip File Content  
HTML Files Description for MATLAB GUI Agilent AWG.htm
Other Files agilentFcnGen.m,
agilentN8241A_simulator.m,
fcngen_gui.fig,
fcngen_gui.m,
editSliderCombo.m,
genWaveForms.m,
agilentN8241A.m
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
24 Sep 2007

Added link to the Agilent instrument driver.

24 Sep 2007

Corrections to the description.

Tag Activity for this File
Tag Applied By Date/Time
example Gautam Vallabha 22 Oct 2008 09:27:13
application Gautam Vallabha 22 Oct 2008 09:27:13
arbitrary waveform generator Gautam Vallabha 22 Oct 2008 14:43:44
agilent Gautam Vallabha 22 Oct 2008 14:43:44
arb Gautam Vallabha 22 Oct 2008 14:43:44
gui Gautam Vallabha 22 Oct 2008 14:43:44
n8241a Gautam Vallabha 22 Oct 2008 14:43:44
awg Gautam Vallabha 22 Oct 2008 14:43:44
n8242a The Instrument Control Team 08 Nov 2008 13:50:32
n8241a The Instrument Control Team 08 Nov 2008 13:50:37
 

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