Agilent Technologies

34970A/72A VISA and C++ Console Measurement Example Program

This program sets the 34970A/72A for 2 simple scans that make both DCV and type J thermocouple temperature measurements. The program also checks the instrument and module identification to make sure there is communication between the 34970A/72A and the computer, and the correct module is installed.

If a 34972A is the instrument, logging to USB memory is enabled. The readings will always go into internal memory,but will also be logged to the USB "stick" memory if it is plugged in.

The measurement values are output on the computer console.

*****NOTE: You must modify the program address in the C++ file and re-compile with your address for this program to work.

This program requires a 34901A module in slot 1

The program requires that the VISA drivers are installed in the computer. VISA comes with the Agilent I/O Library. Also link the visa32.lib file and include the visa.h file in the project.

The program was developed in Microsoft® Visual Studio 2005

Date: October 2009
Language: Microsoft® Visual C++ version 2005
Operating System: XP, Vista
VISA Version: Use Agilent I/O Library version M.01.01.04 or above

Microsoft, Windows, XP, Vista are registered trademarks of Microsoft Corporation

Copyright © 2004, 2009 Agilent Technologies Inc. All rights reserved.

You have a royalty-free right to use, modify, reproduce and distribute these example files (and/or any modified version) in any way you find useful, provided that you agree that Agilent has no warranty, obligations or liability for any Sample Application Files.

Agilent Technologies will not modify the program to provide added functionality or construct procedures to meet your specific needs.

© Agilent 2000-2010