Technical data

Table Of Contents
554 Agilent Infiniium 9000 Series Oscilloscopes Programmer's Reference
25 Measure Commands
myScope.WriteString ":MEASure:FREQuency CHANnel1"
Query :MEASure:FREQuency? [<source>[,<direction>]]
The :MEASure:FREQuency? query returns the measured frequency.
Returned Format
[:MEASure:FREQuency] <value>[,<result_state>]<NL>
<value> The frequency value in Hertz of the first complete cycle on the screen
using the mid-threshold levels of the waveform.
<result_state> If SENDvalid is ON, the result state is returned with the measurement
result. See the :MEASure:RESults table in this chapter for a list of the
result states.
Example This example places the current frequency of the waveform in the numeric
variable, varFreq, then prints the contents of the variable to the
computer's screen.
myScope.WriteString ":SYSTem:HEADer OFF" ' Response headers off.
myScope.WriteString ":MEASure:FREQuency? CHANnel1"
varFreq = myScope.ReadNumber
Debug.Print FormatNumber(varFreq, 0)