Keysight E4981A Programming Manual page 88

Capacitance meter
Hide thumbs Also See for E4981A:
Table of Contents

Advertisement

Measurement Applications (Sample Programs)
Setting Up Measurement Conditions and LCD Display
Example 9-1
Setting measurement conditions and screen display
Sub Example1()
'===================================
' Configuration
'===================================
Dim defrm As Long 'Session to Default Resource Manager
Dim Agte4981a As Long 'Session to instrument
Dim Result As String * 500
Dim Res As Variant
Dim Nop As Integer, i As Integer
Const TimeOutTime = 30000
On Error GoTo ErrorHandler
'===================================
' Open Instrument
'===================================
ErrorCheck viOpenDefaultRM(defrm)
Call SelectMode(defrm, Agte4981a)
ErrorCheck viSetAttribute(Agte4981a, VI_ATTR_TMO_VALUE, TimeOutTime)
'===================================
' Setup Start
'===================================
88
ErrorCheck viVPrintf(Agte4981a, "SYST:PRES;*CLS" + vbLf, 0)
ErrorCheck viVPrintf(Agte4981a, "CALC1:FORM CS" + vbLf, 0)
ErrorCheck viVPrintf(Agte4981a, "CALC2:FORM Q" + vbLf, 0)
ErrorCheck viVPrintf(Agte4981a, "SOUR:FREQ 1E3" + vbLf, 0)
ErrorCheck viVPrintf(Agte4981a, "SOUR:VOLT 0.5" + vbLf, 0)
ErrorCheck viVPrintf(Agte4981a, "RANG:AUTO ON" + vbLf, 0)
ErrorCheck viVPrintf(Agte4981a, "APER:TIME 1" + vbLf, 0)
ErrorCheck viVPrintf(Agte4981a, "CAL:CABL 0" + vbLf, 0)
Keysight E4981A 120 Hz/1 kHz/1 MHz Capacitance Meter

Advertisement

Table of Contents
loading

This manual is also suitable for:

E4981a/001E4981a/002

Table of Contents