Technical data
906 Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
32 Waveform Commands
:WAVeform:XORigin?
Query :WAVeform:XORigin?
The :WAVeform:XORigin? query returns the X-axis value of the first data
point in the data record. For time domain waveforms, it is the time of the
first point. For VERSus type waveforms, it is the X- axis value at level
zero. For voltage waveforms, it is the voltage at level zero. The value
returned by this query is treated as a double precision 64- bit floating
point number.
Returned Format
[:WAVeform:XORigin] <value><NL>
<value> A real number representing the X- axis value of the first data point in the
data record.
Example This example places the current X- origin value for the currently specified
source in the numeric variable, varValue, then prints the contents of the
variable to the computer's screen.
myScope.WriteString ":SYSTEM:HEADER OFF" ' Response headers off.
myScope.WriteString ":WAVEFORM:XORIGIN?"
varValue = myScope.ReadNumber
Debug.Print FormatNumber(varValue, 0)
See Also You can obtain the X-origin value through the :WAVeform:PREamble?
query.
NOTE
A "Waveform data is not valid" error occurs when there is no data available for a channel.
When this occurs, a zero value is returned.