144 Keysight E4981A 120 Hz/1 kHz/1 MHz Capacitance Meter
Measurement Applications (Sample Programs)
Capacitor Measurement Using Test Fixture
9-
Capacitor Measurement Using Test Fixture
This application program perfrom OPEN/SHORT/LOAD correction and
measures a capacitor using a test fixture in the E4981A.
The program of Example 9-15 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 Define Variables and initialize the program.
Open Instrument Assigns a USB address or GPIB address to the I/O bus.
Setup Start Presets the E4981A. Sets Primary and Secondary
parameter format. Inputs measurement frequency and sets
E4981A. Sets trigger settings.
Measurement Performs OPEN/SHORT/LOAD correction. Reads the
measurement results using the *TRG command. Displays
the Primary and Secondary measurement results.
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 IO
Library Suite function is executed.
SelectMode A subroutine to change assignment of the I/O bus and
address setting according to the connection type i.e. USB
or GPIB between the E4981A and a PC.
FnComp A function which performs OPEN/SHORT/LOAD correction
and returns 1 on success and 0 on failure.