8-14 Command Reference
:CALCulate :AVERage :TYPE
8 «MAX|MIN|MEAN|SDEViation|ADEViation»
Statistical Type
Selects the statistical function to be performed.
+
You must use :CALC:DATA? to read the result of statistical operations. :READ?,
:FETC? will only send the results that the statistical operation is based on.
Parameters:
MAX returns the max. value of all samples taken under :CALC:AVER control.
MIN returns the min. value of all samples taken under :CALC:AVER control.
MEAN returns the mean value of the samples taken:
x
N
X
i
i
N
=
=
å
1
1
SDEV returns the standard deviation:
s
xx
N
i
i
N
=
-
-
=
å
()
2
1
1
ADEV returns the Allan deviation
s=
-
-
+
=
-
å
()
()
xx
N
ii
i
N
1
2
1
1
21
Returned format: MAX|MIN|MEAN|SDEV|ADEV¿
*RST condition: MEAN
:CALCulate :DATA?
Fetch calculated data
Fetches data calculated in the post processing block. Use this command to fetch
the calculated result without making a new measurement.
Returned Format:
<Decimal data>¿
Example:
SEND®
:CALC:MATH:STAT8ON;:CALC:MATH8(((18*8X)8-810.7E6)8/81)
;:init; *OPC
Wait for operation complete
SEND® :CALC:DATA?
READ¬
<Measurement 8 result 8 minus 8 10.7E6>
*RST condition:
Event, no *RST condition.
Complies with standards: SCPI 1991.0, Confirmed