HP (Hewlett-Packard) Drive Network Card User Manual


 
17
Chapter 2
• • • • • •
Using IVI with Visual C++
The Environment
Microsoft Visual C++ is a software development environment for the C++
programming language and is available as part of Microsoft Visual Studio.
Visual C++ allows you to create, debug, and execute conventional applications
as well as applications that target the .NET Framework.
Example Requirements
Visual C++
Microsoft Visual Studio 2005
IVI-COM: Agilent 34401A IVI-COM, Version 1.1.0.11, March 2006 (from Agilent
Technologies); or
IVI-C: Agilent 34401A IVI-C, Version 4.1, October 2006 (from National
Instruments)
Agilent IO Libraries Suite 14.2
Download and Install the Driver
If you have not already installed the driver, go to the vendor Web site and follow the
instructions to download and install it.
Since Visual C++ supports both IVI-COM and IVI-C drivers, this example is written
two ways, first to show how to use an IVI-COM driver in Visual C++, and second to
show how to use an IVI-C driver in Visual C++.
Note
: If you do not install the appropriate instrument driver, the project will not build
because the referenced files are not included in the program. If you need to
download and install a driver, you do not need to exit Visual Studio. Install the driver
and continue with your program.
Using IVI-COM in C++
The following sections show how to get started with an IVI-COM driver in Visual
C++