Keysight E4981A Programming Manual page 138

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

Advertisement

Measurement Applications (Sample Programs)
Reading Measurement Signal Level Monitor (IMON & VMON) Results
'===================================
' Measurement
'===================================
While Finish_pros <> "1" ' Loop till processing is finished. *OPC? retruns 1
when processing of all commands is finished.
ErrorCheck viVPrintf(Agte4981a, "*OPC?" + vbLf, 0)
ErrorCheck viVScanf(Agte4981a, "%t", Finish_pros)
Wend
ErrorCheck viVPrintf(Agte4981a, "Data? IMON" + vbLf, 0)
ErrorCheck viVScanf(Agte4981a, "%t", Imon1)
ErrorCheck viVPrintf(Agte4981a, "Data? VMON" + vbLf, 0)
ErrorCheck viVScanf(Agte4981a, "%t", Vmon1)
MsgBox ("Current Monitor Value: " & Val(Imon1) & vbNewLine & "Voltage
Monitor Value: " & Val(Vmon1)), vbInformation
'===================================
' Setup End
'===================================`
Call viClose(defrm)
End
'===================================
' ErrorProc
'===================================`
ErrorHandler:
' Display the error message
MsgBox "*** Error : " + Error$, MB_ICON_EXCLAMATION
End
End Sub
138
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