34
Waveform Commands
: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.
A "Waveform data is not valid" error occurs when there is no data available for a channel.
N O T E
When this occurs, a zero value is returned.
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"
myScope.WriteString ":WAVEFORM:XRANGE?"
varValue = myScope.ReadNumber
Debug.Print FormatNumber(varValue, 0)
982
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
' Response headers off.