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

Table of Contents

Advertisement

12
Programming Examples
840
'
COUNT
: int32 - 1 and is always 1.
'
XINCREMENT : float64 - time difference between data
'
'
XORIGIN
: float64 - always the first data point in
'
'
XREFERENCE : int32 - specifies the data point associated
'
'
YINCREMENT : float32 - voltage difference between data
'
'
YORIGIN
: float32 - value of the voltage at center
'
'
YREFERENCE : int32 - data point where y-origin occurs.
Console.WriteLine("Reading preamble.")
Dim fResultsArray As Double()
fResultsArray = myScope.DoQueryValues(":WAVeform:PREamble?")
Dim fFormat As Double = fResultsArray(0)
Console.WriteLine("Preamble FORMat: {0:e}", fFormat)
Dim fType As Double = fResultsArray(1)
Console.WriteLine("Preamble TYPE: {0:e}", fType)
Dim fPoints As Double = fResultsArray(2)
Console.WriteLine("Preamble POINts: {0:e}", fPoints)
Dim fCount As Double = fResultsArray(3)
Console.WriteLine("Preamble COUNt: {0:e}", fCount)
Dim fXincrement As Double = fResultsArray(4)
Console.WriteLine("Preamble XINCrement: {0:e}", fXincrement)
Dim fXorigin As Double = fResultsArray(5)
Console.WriteLine("Preamble XORigin: {0:e}", fXorigin)
Dim fXreference As Double = fResultsArray(6)
Console.WriteLine("Preamble XREFerence: {0:e}", fXreference)
Dim fYincrement As Double = fResultsArray(7)
Console.WriteLine("Preamble YINCrement: {0:e}", fYincrement)
Dim fYorigin As Double = fResultsArray(8)
Console.WriteLine("Preamble YORigin: {0:e}", fYorigin)
Dim fYreference As Double = fResultsArray(9)
Console.WriteLine("Preamble YREFerence: {0:e}", fYreference)
' QUERY_WAVE_DATA - Outputs waveform records to the controller
' over the interface that is stored in a buffer previously
' specified with the ":WAVeform:SOURce" command.
' READ_WAVE_DATA - The wave data consists of two parts: the
' header, and the actual waveform data followed by a
' New Line (NL) character.
' format:
'
'
<header><waveform data block><NL>
Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide
points.
memory.
with the x-origin.
points.
screen.
The query data has the following

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents