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