Technical data
Measure Commands 24
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference 635
Example This example measures the RMS voltage of the previously selected
waveform.
myScope.WriteString ":MEASURE:VRMS CYCLE,AC,CHANNEL1"
Query :MEASure:VRMS? {CYCLe | DISPlay},{AC | DC} [,<source> [,{VOLT | DBM}]]
The :MEASure:VRMS? query returns the RMS voltage of the specified
source.
Returned Format
[:MEASure:VRMS] <value>[,<result_state>]<NL>
<value> RMS voltage of the selected 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 AC RMS voltage over one period of the
waveform in the numeric variable, varVoltage, then prints the contents of
the variable to the computer's screen.
myScope.WriteString ":SYSTEM:HEADER OFF" ' Response headers off.
myScope.WriteString ":MEASURE:VRMS? CYCLE,AC,CHANNEL1"
varVoltage = myScope.ReadNumber
Debug.Print FormatNumber(varVoltage, 0)