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 Measure Foundry
Using IVI with Matlab
Using IVI with Paws
Using IVI with Agilent VEE Pro
Using IVI with Visual Basic 6.0
Advanced Topics
Chapter Introduction
Why Use an Instrument Driver?
Purpose
Why IVI?
Class IVI Driver
Why Use an IVI Driver?
Flavors of IVI Drivers
Download and Install IVI Drivers
Shared Components
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
Error Checking
Set the Reading Timeout/Display the Reading
Close the Session
Build and Run the Application
Using IVI-C in Visual C++
Exit1 IAgilent34401Ptr dmmuuidofAgilent34401 try
\Program Files\IVI\include
\Program Files\IVI\Lib\msc
$VXIPNPPATHWinNT\include
Chapter
#ifndef checkErr #define checkErrfCall
Define Error Checking
Error =
Goto Error else error = error #endif
CheckErr hp34401aRead session, 1000, &reading
Set the Trigger and Trigger Delay
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
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
Console.WriteLineThe reading is 0, reading Console.ReadLine
Imports Agilent.Agilent34401.Interop
Option Explicit On
Chapter
Using IVI-C
Chapter Using IVI with LabVIEWTM
Create a Project and Access the Driver
Using IVI with LabVIEW
Take the Reading
Display the Reading
Add Error Checking
Run the Application
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
Compile and Run
Data Sink
Close Session
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
Extern Hresult hr
#include DMM.h Extern CComPtrIAgilent34401 driver
#include DMM.h
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
IVI Architecture
Chapter Advanced Topics
Driver API
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
Future Development
Editing the Configuration Store
IVI Drivers in Action
Advanced Topics
Chapter