277
Keysight E4980A/AL Precision LCR Meter
User’s Guide
9Sample 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 Example 9-1 is described in detail below. Each explanation
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 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.
Setup Start Sets the measurement conditions and the LCD display.
Setup End Closes the I/O bus.
ErrorProc Displays an error number when an error occurs.
ErrorCheck A subroutine to check whether an error occurs when the I/O
Library Suite function is executed.
SelectLCR 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.