:WAVeform Commands
34
Keysight InfiniiVision 3000T X-Series Oscilloscopes Programmer's Guide
1113
' 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 = NORMAL, 1 = PEAK DETECT, 2 = AVERAGE
'
POINTS
: int32 - number of data points transferred.
'
COUNT
: int32 - 1 and is always 1.
'
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)
dblXOrigin = Preamble(5)
lngXReference = Preamble(6)
sngYIncrement = Preamble(7)
sngYOrigin = Preamble(8)
lngYReference = Preamble(9)
strOutput = ""
'strOutput = str "Format = " + CStr(intFormat) + vbCrLf
'strOutput = str "Type = " + CStr(intType) + vbCrLf
'strOutput = str "Points = " + CStr(lngPoints) + vbCrLf
'strOutput = str "Count = " + CStr(lngCount) + vbCrLf
'strOutput = str "X increment = " + _
'
FormatNumber(dblXIncrement * 1000000) + " us" + vbCrLf
'strOutput = str "X origin = " + _
'
FormatNumber(dblXOrigin * 1000000) + " us" + vbCrLf
'strOutput = str "X reference = " + _
'
CStr(lngXReference) + vbCrLf
'strOutput = str "Y increment = " + _
'
FormatNumber(sngYIncrement * 1000) + " mV" + vbCrLf
'strOutput = str "Y origin = " + _
'
FormatNumber(sngYOrigin) + " V" + vbCrLf
'strOutput = str "Y reference = " + _
'
CStr(lngYReference) + vbCrLf
strOutput = str "Volts/Div = " + _
Содержание InfiniiVision 3000T X Series
Страница 1: ...Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide...
Страница 40: ...40 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 1 What s New...
Страница 50: ...50 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 2 Setting Up...
Страница 64: ...64 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 3 Getting Started...
Страница 164: ...164 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 4 Commands Quick Reference...
Страница 254: ...254 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 8 BUS n Commands...
Страница 286: ...286 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 10 CHANnel n Commands...
Страница 306: ...306 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 12 DEMO Commands...
Страница 314: ...314 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 13 DIGital d Commands...
Страница 344: ...344 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 16 EXTernal Trigger Commands...
Страница 352: ...352 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 17 FFT Commands FFT WINDow on page 362...
Страница 364: ...364 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 17 FFT Commands...
Страница 402: ...402 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 18 FUNCtion m Commands...
Страница 420: ...420 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 19 HARDcopy Commands...
Страница 442: ...442 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 21 MARKer Commands...
Страница 466: ...466 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 22 MEASure Commands MEASure CLEar on page 464...
Страница 524: ...524 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 22 MEASure Commands...
Страница 548: ...548 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 23 MEASure Power Commands...
Страница 656: ...656 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 26 POWer Commands...
Страница 666: ...666 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 27 RECall Commands...
Страница 888: ...888 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 29 SBUS n Commands...
Страница 978: ...978 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 30 SEARch Commands...
Страница 1006: ...1006 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 32 TIMebase Commands...
Страница 1232: ...1232 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 37 Obsolete and Discontinued Commands...
Страница 1240: ...1240 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 38 Error Messages...
Страница 1264: ...1264 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 39 Status Reporting...
Страница 1274: ...1274 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 40 Synchronizing Acquisitions...
Страница 1404: ...1404 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 42 Programming Examples...