Télécharger Imprimer la page

Keysight Technologies 3458A Guide D'utilisation page 167

Multimètre

Publicité

Making Measurements
4
85 !SAMPLE EVENT
90 TO=TIMEDATE!START TIMER
100 OUTPUT @Dvm;"TARM SGL"!TRIGGER READINGS
110 T1=TIMEDATE!STOP TIMER
120 PRINT "Readings per second = ";Num_readings/(T1-T0)
125 !PRINT READINGS PER SECOND
130 END
If you are transferring multiple readings across the bus instead of using reading
memory, you can use the SYN (synchronous) trigger arm or trigger event (which
also holds the bus until all readings are complete and transferred) and time the
controller's ENTER or TRANSFER statement. This is shown in the following
program (the synchronous trigger arm event is selected by the PRESET FAST
command in line 50).
10 REAL Num_readings!CREATE ARRAY
20 Num_readings=300000!NUMBER OF READINGS = 300000
30 ASSIGN @Dvm TO 722!ASSIGN MULTIMETER ADDRESS
40 ASSIGN @Buffer TO BUFFER [2*Num_readings] !ASSIGN BUFFER I/O PATH
NAME
50 OUTPUT @Dvm; "PRESET FAST"!DCV 10 V RANGE, DINT OUTPUT FORMAT,
55!TARM SYN, TRIG AUTO
60 OUTPUT @Dvm;"NPLC 0"!MINIMUM INTEGRATION TIME
70 OUTPUT @Dvm;"OFORMAT SINT"!SINT OUTPUT FORMAT
80 OUTPUT @Dvm; "NRDGS "; Num_readings, "AUTO"
85 !300000 READINGS/TRIGGER, AUTO SAMPLE EVENT
90 TO=TIMEDATE!BEGIN TIMING READINGS
100 TRANSFER @Dvm TO @Buffer;WAIT!SYN EVENT, TRANSFER READINGS
110 T1=TIMEDATE!STOP TIMING READINGS
120 PRINT "READINGS PER SECOND = 11;Num_readings/(T1/T0)
125!PRINT READINGS PER SECOND
130 END
The time required to retrieve the scale factor (which is necessary to convert the
NOTE
readings output in SINT format) is not included in the above program.
Keysight 3458A User's Guide
167

Publicité

loading