Télécharger Imprimer la page

Keysight Technologies 3458A Guide D'utilisation page 184

Multimètre

Publicité

4
Making Measurements
Statistics
The STAT math operation performs five calculations on a group of readings and
stores the results in five math registers. The calculations are: standard deviation,
mean, number of samples, largest reading, and smallest reading.
the STAT registers and their contents. You can read any of the STAT registers using
the RMATH command.
Table 4-5
Register
SDEV
MEAN
NSAMP
UPPER
LOWER
The following program uses the real-time STAT operation to perform five running
calculations on 20 DC voltage readings. After the readings are taken and
transferred to the controller, the standard deviation is read and returned.
10
20
30
40
50
60
70
80
90
100 END
The following program performs the post-process STAT operation on 20 readings
stored in memory. The post,-process STAT operation is a batch operation. That is
the readings do not have to be recalled from memory in order to perform the STAT
operation. Also notice that the readings must be stored before enabling the
post-process STAT operation (if not, the MEMORY ERROR will occur).
184
STAT registers
Stored resul t
Standard deviation
Average of the readings
Number of readings in this group of measurements
Largest reading in this group of measurements
Smallest reading in this group of measurements
OPTION BASE 1!COMPUTER ARRAY NUMBERING STARTS AT 1
DIM Rdgs(20)!DIMENSION ARRAY FOR 20 READINGS
OUTPUT 722;"PRESET NORM"!PRESET, NRDGS 1,AUTO, DCV 10, TRIG SYN
OUTPUT 722"NRDGS 20"!20 READINGS PER TRIGGER
OUTPUT 722;"MATH STAT"!ENABLE REAL-TIME STAT OPERATION
ENTER
722 Rdgs(*)!SYN EVENT, ENTER READINGS
OUTPUT 722;"RMATH SDEV"!READ STANDARD DEVIATION
ENTER
722;S!ENTER STANDARD DEVIATION
PRINT S!PRINT STANDARD DEVIATION
Table 4-5
Keysight 3458A User's Guide
shows

Publicité

loading