No BSD License  

Highlights from
Agilent's USB Modular Scope U2701A and U2702A MATLAB Programming Example

Be the first to rate this file! 21 Downloads (last 30 days) File Size: 22.5 KB File ID: #23958

Agilent's USB Modular Scope U2701A and U2702A MATLAB Programming Example

by

 

Shows how instrument connection is made, fetching of captured data and displaying of data

| Watch this File

File Information
Description

Models in the family that supports the data acquisition toolbox are the U2701A and U2702A.

This example requires the instrument’s respective IVI-COM instrument driver to be installed in order to operate. This driver can be downloaded for free at:
http://www.agilent.com/find/ivi-com
 
This example also requires VISA software to be installed in order to connect to the instrument using IVI-COM drivers. The software is included in the Agilent IO Libraries and is available for download at:
http://www.agilent.com/find/iosuite
 
Please place AgilentU2701A.mdd which is the MATLAB IVI driver into the install directory of MATLAB {Matlab Installation Directory}\toolbox\instrument\instrument\drivers. For example, C:\MATLAB_R2009a\toolbox\instrument\instrument\drivers

Users would need to change the VISA address in the programming example to start using this to communicate it with the scope. User Interface like the bundled Agilent Measurement Manager (AMM) software is not available and this is in M-code format.

Programming Flow
1. Create an object which connected to device using VISA address
2. Connect to the device
3. Enable Channel 1
4. Read waveform from the device
5. Plot the waveform
6. Disconnect the device and delete the object

Useful MATLAB resources:
1. Summary sheet: Using MATLAB with Agilent Instruments
http://www.home.agilent.com/agilent/redirector.jspx?action=ref&lc=eng&cc=US&nfr=&ckey=1325209&cname=AGILENT_EDITORIAL
2. Overview of MATLAB: http://www.mathworks.com/agilent/matlab
3. Overview of MATLAB Data Acquisition Toolbox: http://www.mathworks.com/access/helpdesk/help/toolbox/daq/index.html?/access/helpdesk/help/toolbox/daq/f5-32960.html&http://www.mathworks.com/cgi-bin/texis/webinator/search/
4. Overview of using MATLAB with Agilent Instruments: http://www.mathworks.com/agilent/overview
5. For more MATLAB program examples and information: http://www.mathworks.com/matlabcentral/
 
For More Information
1. Receive a trial of MATLAB and MATLAB’s Data Acquisition Toolbox:
http://www.mathworks.com/agilent/daq/tryit.html
2. Learn how to use Instrument ControlToolbox to create MATLAB scripts by reading the user documentation: http://www.mathworks.com/products/instrument/?s_cid=HP_FP_ML_InstrumentControl
3. Learn how to use MATLAB software with other Agilent hardware:
http://www.mathworks.com/agilent/overview

Required Products Instrument Control Toolbox
MATLAB release MATLAB 7.8 (R2009a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
16 Jul 2010 Jerry Trantow

Are you running a 64bit os? Scope doesn't work with 64 yet. (Yes, Agilent is really that far behind the times.)

05 Jul 2010 Rossouw van der Merwe

I'm trying to connect an Agilent U2701A Oscilliscope to MATLAB via UAB, I used the availible driver and example from MATLAB for an Agilent U2701A Oscilliscope. I’m still struggeling to make the connection, is there any steps that I have missed or any additional settings or configurations to be done?

Following is a discription:
1.Firstly I assumed the that the U2701A and U2702A will both work with the same program, due to the fact that they share nearly all of the availible drivers.
2.Secondly, when trying to run [U2701xSampleProgram(Auto).m] or [U2701xSampleProgram(Manual).m] (these are the two example programms),the following error message is recieved from MATLAB:

" ??? The IVI driver could not connect to the instrument using the specified resource name.
If this error is not an instrument error, use MIDEDIT to inspect the driver.

Error in ==> U2701xSampleProgram_Auto at 11
connect(deviceObj); "

Further useful information:

The following programms are installed on the computer:
1) Agilent IO Libraries Suite 15.5
2) Agilent IVI-COM Driver for U2701A
3) OS: XP Professional
4) MATLAB R2006a

As in structed, i followd the following steps:
1) placed AgilentU2701A in C:\Program Files\MATLAB\R2006a\toolbox\instrument\instrument\drivers
2) changed the VISA Adress in M-File to my scope

if you can help me with anything, please let my know.

Rossouw van der Merwe (russiepit2000@yahoo.co.uk)

Thank you

Contact us