HP (Hewlett-Packard) Drive Network Card User Manual


 
90
Chapter 9
Tips
The Agilent 34401 driver conforms to the IviDmm class, so you can easily write
your program to use the class-compliant interfaces instead of the instrument-
specific interfaces.
You will need to add a Reference to the IviDmm Class Type
library for your project to compile.
Here is the code:
Option Explicit
Dim dmm As New Agilent33401
Dim ividmm As IIviDmm
Private Sub btnTest_Click()
Set ividmm = dmm
ividmm.Initialize "GPIB::23", False, True, "Simu-
late=True"
ividmm.Configure IviDmmFunctionDCVolts, 1.5, 0.001
ividmm.Trigger.Delay = 0.01
lblResult.Caption = ividmm.Measurement.Read(1000)
ividmm.Close
End Sub