Keysight E4980A/AL Precision LCR Meter
User's Guide
9
Sample Program
This chapter describes sample programs of the E4980A/AL. The programs are
written in VBA macro.
Set Up Measurement Conditions and LCD Display
This application program sets the measurement conditions and the LCD
display of the E4980A/AL.
The program of
below is inserted as a comment line in the program. For details on the VISA
functions, refer to the I/O Library Suite manual.
Configuration
Open Instrument Assigns a USB address or GPIB address to the I/O bus.
Setup Start
Setup End
ErrorProc
ErrorCheck
SelectLCR
Example 9-1
is described in detail below. Each explanation
Assigns variables and enables error handling by the
subroutine named ErrorHandler
Sets the measurement conditions and the LCD display.
Closes the I/O bus.
Displays an error number when an error occurs.
A subroutine to check whether an error occurs when the I/O
Library Suite function is executed.
A subroutine to change assignment of the I/O bus and
address setting according to the selection of a drop down list
in the B3 cell of the "Control Panel" sheet.
277