Using the Agilent U2300A Series USB Multifunction Data Acquisition Devices with MATLAB Software Quick Start Guide Agilent Technologies
Notices © Agilent Technologies, Inc., 2009 Warranty No part of this manual may be reproduced in any form or by any means (including electronic storage and retrieval or translation into a foreign language) without prior agreement and written consent from Agilent Technologies, Inc. as governed by United States and international copyright laws. The material contained in this document is provided “as is,” and is subject to being changed, without notice, in future editions.
Contents Introduction 2 Install the Software Components and Applications 3 Installing MATLAB and MATLAB’s Data Acquisition Toolbox 4 Installing the U2300A Series hardware drivers 4 Installing the Agilent Measurement Manager 5 Installing the U2300A Series IVI-COM drivers 6 Installing the U2300A Series MATLAB DAQ Adaptor 7 Connect the Module 8 Verify Your Module Connection 11 Locate and Add the MATLAB DAQ Adaptor Folder 12 Output example 14 For More Information 15 Quick Start Guide — Using MATLAB with Agilen
1 Introduction MATLAB® Data Acquisition Toolbox is a well known data analysis software environment and programming language. MATLAB software enables you to configure, control, and acquire data from the U2300A Series USB multifunction data acquisition devices. Once data is in MATLAB, you can analyze and visualize that data using interactive tools and command- line functions for data analysis tasks such as signal processing, statistical analysis, digital filtering, and curve fitting.
2 Install the Software Components and Applications Install the software components and applications in the following order as described in this section of the getting started guide: • MATLAB and MATLAB’s Data Acquisition Toolbox • the U2300A Series hardware drivers • the Agilent Measurement Manager (this also installs the Agilent IO Libraries Suite if not already installed) • the U2300A Series IVI–COM driver • the U2300A Series MATLAB DAQ adaptor Minimum system requirements Prior to any installation or con
Follow the instructions below to install the software components: Installing MATLAB and MATLAB’s Data Acquisition Toolbox 1 You can install the MATLAB software directly from the MATLAB installation DVD or from the MathWorks web site. (A MathWorks account is required.) If you do not already have MATLAB and MATLAB’s Data Acquisition Toolbox, you can request a trial at: http://www.mathworks.com/agilent/daq/tryit.html. 2 Follow the on- screen prompts to install MATLAB and this toolbox.
4 Click Install to begin the installation. 5 Click Finish when the installation has completed. Installing the Agilent Measurement Manager NOTE Ensure that you have completed the steps for “Installing the U2300A Series hardware drivers” on page 4 before you proceed. 1 Click Measurement Manager to begin the installation. Click Next to proceed. 2 Click Install to begin the installation. Follow the instructions on the screen to proceed with the installation.
Installing the U2300A Series IVI-COM drivers NOTE • Ensure that you have completed the steps for “Installing the U2300A Series hardware drivers” on page 4 before you proceed. • The IVI Shared Components must also be installed prior to installing the IVI-COM driver. Find the IVI Shared Components at the IVI web site here: http://www.ivifoundation.org. • If needed, the IVI-COM driver may also be downloaded from http://www.agilent.com/find/ivi-com.
Installing the U2300A Series MATLAB DAQ Adaptor NOTE If needed, the U2300A Series MATLAB DAQ Adaptor may also be downloaded from http://www.agilent.com/find/matlab_u2300a. 1 Click Software Driver > MATLAB to begin the installation. 2 Select the U2300A Series check box. Click Install to begin the installation. Follow the instructions on the screen to proceed with the installation. 3 Click Finish when the installation has completed.
3 Connect the Module NOTE Ensure that all the required software components and applications are installed before proceeding. See “Install the Software Components and Applications” on page 3 for more information. 1 After all the installations have completed, connect the power supply to your instrument. 2 Connect the U2300A Series to any USB port on your PC with the bundled USB cable. 3 Your PC will automatically detect the connected unit and the Found New Hardware Wizard window will appear.
4 Select Install the software automatically (Recommended) and click Next. 5 A warning message will appear on the Hardware Installation window. Click Continue Anyway to proceed with the installation of the USB multifunction DAQ device. NOTE If you do not wish to receive similar warning messages in the future, follow the instructions below. 1 2 3 4 Go to Start > Control Panel and double-click System. Select the Hardware tab and click Driver Signing on the Drivers panel.
6 Click Finish to complete the installation. If you have more than one type of USB instrument connected, you will need to go through the driver installation procedures again for each USB instrument connected.
4 Verify Your Module Connection The Agilent Connection Expert is one of the utilities of the Agilent IO Libraries Suite. The Connection Expert configures the connected instruments and enables communication. It is able to automatically detect the U2300A Series USB multifunction data acquisition devices plugged into the PC. 1 Go to Start > All Programs > Agilent IO Libraries Suite > Agilent Connection Expert to launch the Connection Expert.
5 Locate and Add the MATLAB DAQ Adaptor Folder Follow the instructions below to locate and add the folder in which the MATLAB DAQ adaptor has been installed. The folder contains a file in the form AgilentU2300.dll, which works for all U2300A Series hardware. Launch MATLAB. 1 Click File > Set Path. The Set Path window appears as shown.
2 Click Add Folder. The Browse For Folder window appears as shown. Use this window to locate the AgilentU2300.dll file. The default MATLAB DAQ Adaptor directory is C:\Program Files\Agilent\ DAQMATLABAdaptor. 3 Click OK. The folder is then added. Click Save and then click Close. 4 Open the MATLAB example program. Change the AgilentU2300 name to the name of your adaptor by editing the program. Then run the example program. Your output should look similar to the example shown below. 5 Once you add the .
Output example >>daqstartup ans= AdaptorDllName: 'C:\Program Files\Agilent\DAQMATLABAdaptor\ AgilentU2300.
6 For More Information 1 Request a trial of MATLAB and MATLAB’s Data Acquisition Toolbox: http://www.mathworks.com/agilent/daq/tryit.html 2 Learn more about using MATLAB software with the U2300A Series devices: http://www.mathworks.com/agilent/daq/overview 3 Learn how to use the Data Acquisition Toolbox to create MATLAB scripts by reading the user documentation for the Data Acquisition Toolbox: http://www.mathworks.com/access/helpdesk/help/toolbox/daq/index.
MATLAB® Data Acquisition Toolbox is a registered trademark of The MathWorks, Inc.
www.agilent.