Agilent Technologies InfiniiVision 7000A Series Programmer's Manual page 779

Table of Contents

Advertisement

VisaComError:
End Sub
Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide
myScope.WriteString ":OPERegister:CONDition?"
varQueryResult = myScope.ReadNumber
' Mask RUN bit (bit 3, &H8).
If (varQueryResult And &H8) = 0 Then
Exit Do
Else
Sleep 100
' Small wait to prevent excessive queries.
lngElapsed = lngElapsed + 100
End If
Loop
' Get results.
' -----------------------------------------------------------------
If lngElapsed < lngTimeout Then
myScope.WriteString ":MEASure:RISetime"
myScope.WriteString ":MEASure:RISetime?"
varQueryResult = myScope.ReadNumber
Debug.Print "Risetime: " + _
FormatNumber(varQueryResult * 1000000000, 1) + " ns"
Else
Debug.Print "Timeout waiting for single-shot trigger."
End If
Exit Sub
MsgBox "VISA COM Error:" + vbCrLf + Err.Description
Synchronizing Acquisitions
' Read risetime.
10
779

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents