Keithley 2100 User Manual page 144

6 1/2-digit resolution digital multimeter
Hide thumbs Also See for 2100:
Table of Contents

Advertisement

Appendix B: Remote Interface Reference
End If
Rem send reset command '*RST' -- reset 2100
stat = viWrite(sesn, "*RST", 4, ret)
If (stat < VI_SUCCESS) Then
MsgBox "System command error. (*RST)", vbExclamation, "2100 multimeter device
test"
stat = viClose(fList)
Exit Sub
End If
Rem send Clear command '*CLS'-- Clear 2100 status register
stat = viWrite(sesn, "*CLS", 4, ret)
If (stat < VI_SUCCESS) Then
MsgBox "System command error. (*CLS)", vbExclamation, "2100 multimeter device
test"
stat = viClose(fList)
Exit Sub
End If
Rem send measure command -- Set to 0.1 volt dc range
stat = viWrite(sesn, "meas:volt:DC? 0.1,0.01", 22, ret)
If (stat < VI_SUCCESS) Then
MsgBox "System command error. (meas:volt:dc? ...)", vbExclamation, "2100
multimeter device test"
stat = viClose(fList)
Exit Sub
End If
Rem fetch the measure data
stat = viRead(sesn, readin, 64, ret)
If (stat < VI_SUCCESS) Then
MsgBox "Read in data error.", vbExclamation, "2100 multimeter device test"
stat = viClose(fList)
Exit Sub
End If
Debug.Print "Rdg = "; readin
Rem set to local mode
stat = viWrite(sesn, "system:local", 12, ret)
If (stat < VI_SUCCESS) Then
MsgBox "System command error. (system:local)", vbExclamation, "2100
multimeter device test"
stat = viClose(fList)
Exit Sub
End If
stat = viClose(sesn)
stat = viClose(fList)
stat = viClose(dfltRM)
MsgBox "End of Job."
End Sub
Using CONFigure with a math operation
B-32
MsgBox "Open device failed.", vbExclamation, "2100 multimeter device test"
stat = viClose(fList)
Exit Sub
Return to
Model 2100 6 1/2-Digit Resolution Digital Multimeter User's Manual
Section Topics
2100-900-01 Rev. D / September 2011

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents