Télécharger Imprimer la page

Keysight Technologies 3458A Guide D'utilisation page 180

Multimètre

Publicité

4
Making Measurements
The following program uses the real-time scale operation to divide each of 20
readings by 2. The default value of 0 is left in the OFFSET register so no
subtraction is done before the readings are scaled.
10 OPTION BASE 1!COMPUTER ARRAY NUMBERING STARTS AT 1
20 DIM Rdgs(20)!DIMENSION ARRAY FOR 20 READINGS
30 OUTPUT 722;"PRESET NORM"!PRESET, NRDGS 1,AUTO, DCV 10, TRIG SYN
40 OUTPUT 722;"NRDGS 20"!20 READINGS PER TRIGGER
50 OUTPUT 722;"MATH SCALE"!ENABLE REAL-TIME SCALE OPERATION
60 OUTPUT 722;"SMATH SCALE 2"!WRITE 2 TO SCALE REGISTER
70 ENTER 722;Rdgs(*)!SYN EVENT, ENTER SCALED READINGS
80 PRINT Rdgs(*)!PRINT SCALED READINGS
90 END
The following program uses the post-process scale operation to subtract the
value of 1 from each reading and then divide each reading by 2.
10
20
30
40
50
60
70
80
90
100 ENTER 722;Rdgs(*)!!RECALL READINGS USING IMPLIED READ,
105!PERFORM SCALE OPERATION ON EACH
110 PRINT Rdgs(*)!PRINT MATH RESULTS
120 END
Percent
The PERC math operation determines the difference, in percent, between each
reading and the value in the PERC register. The equation is:
You can use the PERC math operation to determine the difference (in percent)
between an ideal value and the measured value. For example, the following
180
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;"MEM FIFO"!ENABLE READING MEMORY, FIFO MODE
OUTPUT 722;"NRDGS 20"!20 READINGS PER TRIGGER
OUTPUT 722;"MMATH SCALE"!ENABLE POST-PROCESS SCALE OPERATION
OUTPUT 722;"SMATH OFFSET 1"!WRITE 1 TO OFFSET REGISTER
OUTPUT 722;"SMATH SCALE 2"!WRITE 2 TO SCALE REGISTER
OUTPUT 722;"TRIG SGL"!TRIGGER READINGS
Result = ((Reading - PERC)/PERC)@100
Where:
Reading is any reading.
PERC is the value stored in the PERC register (power-on value = 1).
Keysight 3458A User's Guide

Publicité

loading