MEAN

Trace Mean

Returns the mean value of the given trace in measurement units.
Syntax
MEAN
,-
source
-\
F
PreZef
ined
function path only
b
user-defined trace
/
Item Description/Default Range
User-defined trace
A
trace
defined
by the TRDEF command Any valid trace name.
Trace Range A segment of trace A, trace B, trace C, or a user-defined trace.
Prerequisite Commands: TRDEF when using a user-defined trace. TS when using trace data.
Related Commands: MEANTH, RMS, STDEV, VARIANCE.
Example
10 OUTPUT
718;"IP;"
20 OUTPUT
718*"SNGLS-"
Initializes spectrum analyzer
30 OUTPUT
718;"CF
30;MHZ;SP
IMHZ;"
Activates the single-sweep
mode.
Sets measurement range.
40 OUTPUT
718;"TS;"
Sweeps trace A.
50 OUTPUT
718;"MEAN
TRA?;"
Returns the mean value of trace A to the computer:
60 ENTER
718;Number
Assigns value to computer variable, Number
70 DISP "MEAN OF TRACE A IS
'-
,
Number
Displays result on the computer screen.
80 END
Query Response
5-306 Programming Commands