Keysight E4980A/AL Precision LCR Meter 299
Sample Program
Read Measurement Results
9-
Read measurement data in BINARY (comparator)
This application program reads the measurement data in BINARY format when
the comparator function is on.
The program of Example 9-6 is described below.
Configuration Assigns variables and enables error handling by the
subroutine named ErrorHandler
Open Instrument Assigns a USB address or GPIB address to the I/O bus. Also
sets the time for timeout.
Setup Start Sets the trigger, comparator function, and data format.
Meas Read Reads the measurement data using the :FETCh? command
and displays the returned BINARY format array data
individually.
Setup End Close the I/O bus.
ErrorProc Displays an error number when an error occurs.
BinaryAry Read Sets the address of the array in which measured data is
stored. A subroutine to set the returned BINARY format data
in the array.
Example 9-6 Read measurement results (BINARY format, comparator)
Sub Example_3_4()
'===================================
' Configuration
'===================================
Dim defrm As Long 'Session to Default Resource
Manager
Dim AgtE4980A/AL As Long 'Session to instrument
Dim Res() As Double
Dim Nop As Long, i As Integer, j As Integer, k As Integer
Const TimeOutTime = 30000
On Error GoTo ErrorHandler
'===================================
' Open Instrument