154
Chapter 9
Measurement Applications (Sample Programs)
Measuring Results with Contact Check Enabled
Measuring Results with Contact Check Enabled
This application program measures Primary and Secondary measurement parameters of the
E4981A with contact check enabled.
The program of
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 trigger, measurement frequency, voltage and
range settings.
Measurement
Sets Contact Check Parameters. Executes measurement using *TRG.
Separates the returned ASCII format character string data with
commas, and displays the Primary and Secondary Measurement data.
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.