Keysight Technologies InfiniiVision M9241A Scpi Programmer's Manual page 1194

Pxie
Hide thumbs Also See for InfiniiVision M9241A:
Table of Contents

Advertisement

32
:WAVeform Commands
See complete example programs at:
starting on page 1377
1194
' size can vary depending on the number of points acquired for the
' waveform.
You can then read that number of bytes from the
' oscilloscope and the terminating NL character.
'
Dim lngI As Long
Dim lngDataValue As Long
' Unsigned integer bytes.
varQueryResult = myScope.ReadIEEEBlock(BinaryType_UI1)
For lngI = 0 To UBound(varQueryResult) _
Step (UBound(varQueryResult) / 20)
If intBytesPerData = 2 Then
lngDataValue = varQueryResult(lngI) * 256 _
+ varQueryResult(lngI + 1)
Else
lngDataValue = varQueryResult(lngI)
End If
strOutput = strOutput + "Data point " + _
CStr(lngI / intBytesPerData) + ", " + _
FormatNumber((lngDataValue - lngYReference) _
* sngYIncrement + sngYOrigin) + " V, " + _
FormatNumber(((lngI / intBytesPerData - lngXReference) _
* sngXIncrement + dblXOrigin) * 1000000) + " us" + vbCrLf
Next lngI
MsgBox "Waveform data:" + vbCrLf + strOutput
Keysight InfiniiVision M9241/42/43A PXIe Oscilloscopes SCPI Programmer's Guide
' 20 points.
' 16-bit value.
' 8-bit value.
Chapter
40, "Programming Examples,"

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the InfiniiVision M9241A and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Infiniivision m9242aInfiniivision m9243a

Table of Contents