Keysight Technologies E4981A Programming Manual page 99

120 hz/1 khz/1 mhz capacitance meter
Hide thumbs Also See for E4981A:
Table of Contents

Advertisement

Example 9-2
Executing OPEN/SHORT/LOAD correction
Sub Example2()
'===================================
' Configuration
'===================================
Dim defrm As Long 'Session to Default Resource Manager
Dim Agte4981a As Long 'Session to instrument
Dim Result As String * 500
Dim Freq As String
Dim Res As Variant
Dim Nop As Integer, i As Integer
Dim Corr_File_Name As String
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
'===================================
ErrorCheck viVPrintf(Agte4981a, "SYST:PRES;*CLS" + vbLf, 0) '
Preset the E4981A
Freq = InputBox("Enter the frequency (120/1E3/1E6) you want to
measure")
Chapter 9
Measurement Applications (Sample Programs)
Executing OPEN/SHORT/LOAD Correction
97

Advertisement

Table of Contents
loading

Table of Contents