Commands by Subsystem
3
Agilent 6000 Series Oscilloscopes Programmer's Reference
459
1000000) + " us" + vbCrLf
strOutput = str "Delay = " + _
FormatNumber(((lngPoints / 2 - lngXReference) * _
dblXInc dblXOrigin) * 1000000) + " us" + vbCrLf
' QUERY_WAVE_DATA - Outputs waveform data that is stored in a buffer.
' Query the oscilloscope for the waveform data.
myScope.WriteString ":WAV:DATA?"
' READ_WAVE_DATA - The wave data consists of two parts: the header,
' and the actual waveform data followed by a new line (NL) character.
' The query data has the following format:
'
'
<header><waveform_data><NL>
'
' Where:
'
<header> = #800001000 (This is an example header)
' The "#8" may be stripped off of the header and the remaining
' numbers are the size, in bytes, of the waveform data block.
The
' 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)
' 20 points.
If intBytesPerData = 2 Then
lngDataValue = varQueryResult(lngI) * 256 _
+ varQueryResult(lngI + 1)
' 16-bit value.
Else
lngDataValue = varQueryResult(lngI)
' 8-bit value.
End If
strOutput = str "Data point " + _
CStr(lngI / intBytesPerData) + ", " + _
FormatNumber((lngDataValue - lngYReference) _
* sngYInc sngYOrigin) + " V, " + _
FormatNumber(((lngI / intBytesPerData - lngXReference) _
* sngXInc dblXOrigin) * 1000000) + " us" + vbCrLf
Next lngI
MsgBox "Waveform data:" + strOutput
Example program from the start:
Summary of Contents for DSO6014A/L
Page 1: ...A Agilent 6000 Series Oscilloscopes Programmer s Reference...
Page 16: ...16 Agilent 6000 Series Oscilloscopes Programmer s Reference...
Page 30: ...30 Agilent 6000 Series Oscilloscopes Programmer s Reference 1 What s New...
Page 540: ...540 Agilent 6000 Series Oscilloscopes Programmer s Reference 6 Error Messages...
Page 562: ...562 Agilent 6000 Series Oscilloscopes Programmer s Reference 7 Status Reporting...
Page 624: ...624 Agilent 6000 Series Oscilloscopes Programmer s Reference 9 Programming Examples...