Technical data
Waveform Commands 32
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference 907
:WAVeform:XRANge?
Query :WAVeform:XRANge?
The :WAVeform:XRANge? query returns the X- axis duration of the
displayed waveform. For time domain waveforms, it is the duration of the
time across the display. For VERSus type waveforms, it is the duration of
the waveform that is displayed on the X axis.
Returned Format
[:WAVeform:XRANge] <value><NL>
<value> A real number representing the X- axis duration of the displayed
waveform.
Example This example returns the X-axis duration of the displayed waveform to 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:XRANGE?"
varValue = myScope.ReadNumber
Debug.Print FormatNumber(varValue, 0)
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.