HP (Hewlett-Packard) Drive Network Card User Manual


 
85
Chapter 9
• • • • • •
Using IVI with Visual Basic 6.0
The Environment
Visual Basic 6.0 is a programming environment derived from Basic and developed
by Microsoft for the Windows operating system. Software vendors and developers
use VB to create applications quickly by writing code to accompany on-screen
objects such as buttons, windows, and dialog boxes.
This chapter focuses on VB 6.0, which is not the most current version. If you
are new to VB, we recommend you refer to Chapter 3, Using IVI with C# and
Visual Basic .NET.
Example Requirements
Visual Basic 6.0
Microsoft Visual Studio 6.0
Agilent 34401A IVI-COM, Version 1.1.0.11, March 2006 (from Agilent
Technologies)
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. You can also refer to Chapter 1, Download
and Install IVI Drivers, for instructions.
This example uses an IVI-COM driver. IVI-COM is the preferred driver for Visual
Basic 6.0, but IVI-C is also supported via the inclusion of .bas files.
Create a New Project and Reference the Driver
To use an IVI Driver in a Visual Basic program, you must first create a project and
add a reference to the driver.
1 Launch Visual Basic and create a new project using Standard EXE project.
Note:
This creates a Windows Application program.