Agilent Technologies InfiniiVision 3000 Programmer's Manual page 1105

X-series
Hide thumbs Also See for InfiniiVision 3000:
Table of Contents

Advertisement

VisaComError:
End Sub
Private Function DoQueryString(query As String) As String
VisaComError:
End Function
Private Function DoQueryNumber(query As String) As Variant
VisaComError:
End Function
Private Function DoQueryNumbers(query As String) As Variant()
Agilent InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
On Error GoTo VisaComError
Dim strErrors As String
myScope.WriteIEEEBlock command, data
CheckInstrumentErrors
Exit Sub
MsgBox "VISA COM Error: " + vbCrLf + CStr(Err.Number) + ", " + _
Err.Source + ", " + _
Err.Description, vbExclamation, "VISA COM Error"
End
On Error GoTo VisaComError
myScope.WriteString query
DoQueryString = myScope.ReadString
CheckInstrumentErrors
Exit Function
MsgBox "VISA COM Error: " + vbCrLf + CStr(Err.Number) + ", " + _
Err.Source + ", " + _
Err.Description, vbExclamation, "VISA COM Error"
End
On Error GoTo VisaComError
myScope.WriteString query
DoQueryNumber = myScope.ReadNumber
CheckInstrumentErrors
Exit Function
MsgBox "VISA COM Error: " + vbCrLf + CStr(Err.Number) + ", " + _
Err.Source + ", " + _
Err.Description, vbExclamation, "VISA COM Error"
End
On Error GoTo VisaComError
Programming Examples
1105
39

Advertisement

Table of Contents
loading

Table of Contents