:WAVeform Commands 36
Keysight InfiniiVision 4000 X-Series Oscilloscopes Programmer's Guide 1411
• ":ACQuire:TYPE" on page 318
• ":DIGitize" on page 268
• ":WAVeform:COUNt" on page 1402
• ":WAVeform:DATA" on page 1403
• ":WAVeform:FORMat" on page 1405
• ":WAVeform:POINts" on page 1406
• ":WAVeform:TYPE" on page 1422
• ":WAVeform:XINCrement" on page 1425
• ":WAVeform:XORigin" on page 1426
• ":WAVeform:XREFerence" on page 1427
• ":WAVeform:YINCrement" on page 1428
• ":WAVeform:YORigin" on page 1429
• ":WAVeform:YREFerence" on page 1430
Example Code
' GET_PREAMBLE - The preamble block contains all of the current
' WAVEFORM settings. It is returned in the form <preamble_block><NL>
' where <preamble_block> is:
' FORMAT : int16-0=BYTE, 1 = WORD, 4 = ASCII.
' TYPE : int16-0=NORM, 1 = PEAK, 2 = AVER, 3 = HRES
' POINTS : int32 - number of data points transferred.
' COUNT : int32-1andisalways1.
' XINCREMENT : float64 - time difference between data points.
' XORIGIN : float64 - always the first data point in memory.
' XREFERENCE : int32 - specifies the data point associated with
' x-origin.
' YINCREMENT : float32 - voltage diff between data points.
' YORIGIN : float32 - value is the voltage at center screen.
' YREFERENCE : int32 - specifies the data point where y-origin
' occurs.
Dim Preamble()
Dim intFormat As Integer
Dim intType As Integer
Dim lngPoints As Long
Dim lngCount As Long
Dim dblXIncrement As Double
Dim dblXOrigin As Double
Dim lngXReference As Long
Dim sngYIncrement As Single
Dim sngYOrigin As Single
Dim lngYReference As Long
Dim strOutput As String
myScope.WriteString ":WAVEFORM:PREAMBLE?" ' Query for the preamble.
Preamble() = myScope.ReadList ' Read preamble information.
intFormat = Preamble(0)
intType = Preamble(1)
lngPoints = Preamble(2)
lngCount = Preamble(3)
dblXIncrement = Preamble(4)