Keysight E4981A Programming Manual page 112

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

Advertisement

Measurement Applications (Sample Programs)
Detecting the Completion of Measurement using SRQ
ErrorCheck viVPrintf(Agte4981a, "INIT:CONT OFF" + vbLf, 0)
ErrorCheck viVPrintf(Agte4981a, "ABOR;INIT" + vbLf, 0)
ErrorCheck viVPrintf(Agte4981a, "TRIG:IMM" + vbLf, 0)
'===================================
' STB Check
'===================================
Do
Loop Until StbStatus = 192
Worksheets("Example5").Range("B6").Value = "Measurement Done"
ErrorCheck viVPrintf(Agte4981a, "*CLS" + vbLf, 0)
'===================================
' Setup End
'===================================
Call viClose(defrm)
End
'===================================
' ErrorProc
'===================================
ErrorHandler:
' Display the error message
MsgBox "*** Error : " + Error$, MB_ICON_EXCLAMATION
End
End Sub
112
ErrorCheck viReadSTB(Agte4981a, StbStatus)
Worksheets("Example5").Range("B5").Value = StbStatus
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