Percent - Agilent Technologies 3458A User Manual

Hide thumbs Also See for 3458A:
Table of Contents

Advertisement

Percent

10 OPTION BASE 1
20 DIM Perc(20)
30 OUTPUT 722;"PRESET NORM"
40 OUTPUT 722;"NRDGS 20"
50 OUTPUT 722;"MATH PERC"
60 OUTPUT 722;"SMATH PERC 10"
70 ENTER 722;Perc(*)
80 PRINT Perc(*)
90 END
10
OPTION BASE 1
20
DIM Perc(20)
30
OUTPUT 722;"PRESET NORM"
40
OUTPUT 722;"MEM FIFO"
50
OUTPUT 722;"NRDGS 20"
60
OUTPUT 722;"MMATH PERC"
70
OUTPUT 722;"SMATH PERC 10"
80
OUTPUT 722;"TRIG SGL"
90
ENTER 722;Perc(*)
95
100 PRINT Perc(*)
110 END
120
Chapter 4 Making Measurements
The PERC math operation determines the difference, in percent, between
each reading and the value in the PERC register. The equation is:
Result = ((Reading - PERC)/PERC)
Where:
Reading is any reading.
PERC is the value stored in the PERC register (power-on value = 1).
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 program determines the percent error of a 10 VDC voltage
measurement. Line 60 enters the ideal value (10) into the PERC register. Line
70 triggers the 20 readings. If a reading is exactly 10 VDC, the value returned
is 0. If a reading is, for example, 10.1 VDC, the value returned is:
Result = ((10.1 - 10)/10)
The following program is similar to the preceding program except that it uses
the post-process PERC operation.
DB
The DB math operation calculates a ratio in decibels. The equation is:
Result = 20
log
·
10
Where:
Reading is any reading.
REF is the value in the REF register (default = 1).
You can change the value in the REF register using the SMATH command.
100
·
100 = 0.01
100 = 1
·
·
!COMPUTER ARRAY NUMBERING STARTS AT 1
!DIMENSION ARRAY FOR 20 PRECENTAGES
!PRESET, NRDGS 1,AUTO, DCV 10, TRIG SYN
!20 READINGS PER TRIGGER
!ENABLE REAL-TIME PERC OPERATION
!WRITE 10 TO PERC REGISTER
!SYN EVENT, ENTER PERCENT DIFFERENCE
!PRINT PERCENT DIFFERENCE
!COMPUTER ARRAY NUMBERING STARTS AT 1
!DIMENSION ARRAY FOR 20 PERCENTAGES
!PRESET,NRDGS 1,AUTO, DCV 10, TRIG SYN
!ENABLE READING MEMORY, FIFO MODE
!20 READINGS PER TRIGGER
!ENABLE POST-PROCESS PERC OPERATION
!WRITE 10 TO PERC REGISTER
!TRIGGER READINGS
!RECALL READINGS USING IMPLIED READ,
!PERFORM PERC OPERATION
!PRINT PERCENT DIFFERENCE
,(Reading/REF)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents