Getting Started Guide
Page
Contents
Using IVI with Visual C# and Visual Basic .NET
Using IVI with LabVIEW
Using IVI with LabWindows/CVI
Using IVI with Matlab
Using IVI with Measure Foundry
Using IVI with Paws
Using IVI with Visual Basic 6.0
Using IVI with Agilent VEE Pro
Advanced Topics
Why Use an Instrument Driver?
Chapter Introduction
Purpose
Why IVI?
Class IVI Driver
Why Use an IVI Driver?
Download and Install IVI Drivers
Flavors of IVI Drivers
Shared Components
Familiarizing Yourself with the Driver
Examples
Introduction
Chapter
Chapter Using IVI with Visual C++
Download and Install the Driver
Using IVI-COM in C++
Environment
Create a New Project and Import the Driver Type Libraries
\Program Files\Ivi\Bin
Using IVI with Visual C++
Configure the Instrument
Set the Trigger Delay
Dmm-ConfigureIviDmmFunctionDCVolts, 1.5
Dmm-Trigger-Delay =
Set the Reading Timeout/Display the Reading
Error Checking
Close the Session
Using IVI-C in Visual C++
Build and Run the Application
Exit1 IAgilent34401Ptr dmmuuidofAgilent34401 try
\Program Files\IVI\Lib\msc
\Program Files\IVI\include
$VXIPNPPATHWinNT\include
Chapter
Define Error Checking
Error =
Goto Error else error = error #endif
#ifndef checkErr #define checkErrfCall
Set the Trigger and Trigger Delay
CheckErr hp34401aRead session, 1000, &reading
If session Hp34401aClosesession
Build and Run the Application
Further Information
Chapter Using IVI with Visual C# Visual Basic .NET
Create a New Project and Reference the Driver
Using Agilent.Agilent34401.Interop
Create an Instance of the Driver
Type dmm.Initialize GPIB23, false, true, simulate=true
Dmm.DCVoltage.Configure1.5
Dmm.Trigger.Delay =
Type double reading
Dmm.Close
Tips
Agilent34401Class dmm = new Agilent34401Class
Imports Agilent.Agilent34401.Interop
Console.WriteLineThe reading is 0, reading Console.ReadLine
Option Explicit On
Chapter
Chapter Using IVI with LabVIEWTM
Using IVI-C
Create a Project and Access the Driver
Using IVI with LabVIEW
Take the Reading
Add Error Checking
Display the Reading
Run the Application
Setting a Property in an IVI-C Driver
Using IVI-COM
Using IVI with LabVIEW
Initialize the Instrument
Configure the Instrument
Close the Driver and Automation Sessions
Run the Application
Chapter
Chapter Using IVI with LabWindowsTM/CVITM
Create a New Project and Add Instrument Driver Files
#include hp34401a.h
Using IVI with LabWindowsTM/CVITM
Configure the Instrument
Set the Reading Timeout
GPIB023INSTR, Vifalse
Printf %f, reading
Chapter
Chapter Using IVI with Matlab
Development Environment
Configure the IVI Driver
Topics
Using IVI with Matlab
DMM in the Driver session field
Configure and Control the Instrument
Generate an Instrument Wrapper
Create an Instance of the Instrument
Connect to the Instrument
Set Reading Timeout
Display Reading
Disconnect from the Instrument
Remove the Driver from Memory
Matlab is a registered trademark of The MathWorks, Inc
Chapter
Chapter Using IVI with Measure Foundry
Data Source
Using IVI with Measure Foundry
Control Source
Using IVI with Measure Foundry
Data Sink
Compile and Run
Close Session
Using IVI with Measure Foundry
Chapter
Chapter Using IVI with Paws
Prepare the Paws Environment
NOM 0 V UL 0.5 V LL -0.5
CNX HI X20-2 LO
VDC $
Cnx hi DMM-Hi, lo DMM-Lo
Add the Wcem Interface Functions
Connect to the IVI-COM Driver
#include DMM.h Extern CComPtrIAgilent34401 driver
Extern Hresult hr
#include DMM.h
Variantfalse Varianttrue
Hr = driver-getDCVoltage&pDMMDCVolt
Hr = pDMMTrig-ConfigureAgilent34401TriggerSourceImmediate
Display\0333041m Bad return from Close method\033m\n
IEEE-488 Bus Configuration File Channel
Build the Project
Prepare the Run-Time System Environment
MLA
Load and Run the Project
Chapter
Chapter Using IVI with Visual Basic
Add a Button
Option Explicit
Dim dmm As New Agilent33401
Type 1.5
Type dmm.Trigger.Delay =
Type dmm.Close
Tips
Further Information
Chapter
Chapter Using IVI with Agilent VEE Pro
Launch the Instrument Manager and Select the Driver
Chapter
Using IVI with Agilent VEE Pro
Initialize the Instrument
Configure the Instrument
Tips Another Method to Display the Reading
Further Information
Chapter
Chapter Advanced Topics
IVI Architecture
Driver API
Driver Types
Advanced Topics
Instrument I/O
Interchangeability
Advanced Topics
IVI Configuration Store
Advanced Topics
Chapter
IVI-COM
IIviSessionFactory factory = new IviSessionFactoryClass
Driver.InitializelogicalName, true, true
String identifier = driver.Identity.Identifier
Console.WriteLineIdentifier 0, identifier
IIviDmm dmm = IIviDmmfactory.CreateDriverlogicalName
IVI-C
Editing the Configuration Store
Future Development
IVI Drivers in Action
Advanced Topics
Chapter