Technical data

Waveform Commands 32
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference 913
:WAVeform:YRANge?
Query :WAVeform:YRANge?
The :WAVeform:YRANge? query returns the Y- axis duration of the
displayed waveform. For voltage waveforms, it is the voltage across the
entire display.
Returned Format
[:WAVeform:YRANge] <value><NL>
<value> A real number representing the Y- axis duration of the displayed waveform.
Example This example returns the current Y- range value 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:YRANGE?"
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.