Télécharger Imprimer la page

Keysight Technologies 3458A Guide D'utilisation page 147

Multimètre

Publicité

Making Measurements
4
NRDGS command, each record in reading memory contains four readings. The
following program specifies 10 readings per trigger (NRDGS 10) and uses the
TARM SGL command to take 8 groups of 10 readings (multiple trigger arming).
This will place a total of 80 readings in memory.
10 OUTPUT 722;"TARM HOLD"!SUSPEND READINGS
20 OUTPUT 722."DCV 1"!DC VOLTAGE, 1 V RANGE
30 OUTPUT 722;"MEM FIFO"!ENABLE READING MEMORY, FIFO MODE
40 OUTPUT 722;"TRIG AUTO"!AUTO TRIGGER EVENT
50 OUTPUT 722;"NRDGS 10,AUTO"!10 READINGS/TRIGGER, AUTO SAMPLE EVENT
60 OUTPUT 722;"TARM SGL,8"!ARM TRIGGERING 8 TIMES
70 END
The stored readings can now be accessed by individual reading number (1
through 80) or by record/reading number (e.g. the 3rd reading in record 2 is also
reading number 13). For example, the following program returns and displays
reading number 50 (the 31st reading taken by the above program).
10 OUTPUT 722;"RMEM 50"!RECALL READING NUMBER 50
20 ENTER 722;A!ENTER READING
30 PRINT A!PRINT READING
40 END
The following program uses the first parameter and the count parameter to return
and display the readings numbered 12 through 17.
10 OPTION BASE 1!COMPUTER ARRAY NUMBERING STARTS AT 1
20 DIM Rdgs(6)!DIMENSION ARRAY FOR 6 READINGS
30 OUTPUT 722;"RMEM 12,6"!RECALL 6 READINGS, STARTING WITH #12
40 ENTER 722;Rdgs(*)!ENTER READINGS
50 PRINT Rdgs(*)!PRINT READINGS
60 END
You can also use record numbers when recalling readings. The multimeter assigns
the lowest record number (1) to the most recent record and the highest number to
the oldest record. The following program returns the 3rd and 4th reading in record
number 6 {in this case, readings numbered 53 and 54, respectively).
10 OPTION BASE 1!COMPUTER ARRAY NUMBERING STARTS AT 1
20 DIM Rdgs(2)!DIMENSION ARRAY FOR READINGS
30 OUTPUT 722;"RMEM 3,2,6"!RECALL 3rd & 4th READINGS FROM RECORD #6
40 ENTER 722;Rdgs(*)!ENTER READINGS
50 PRINT Rdgs(*)!PRlNT READINGS
60 END
Keysight 3458A User's Guide
147

Publicité

loading