Télécharger Imprimer la page

Keysight Technologies 3458A Guide D'utilisation page 214

Multimètre

Publicité

5
Digitizing
Sending samples to memory
When samples are sent directly to reading memory (MEM FIFO command), the
multimeter automatically re-orders the samples producing a composite
waveform. For example, in the following program, the sub-sampled data is sent to
reading memory using the required SINT memory format. The multimeter places
the samples in memory in the corrected order. The samples are then transferred to
the controller using the DREAL output format (when placing sub-sampled data in
reading memory first, you are not restricted to using the SINT output format).
10OPTION BASE 1!COMPUTER ARRAY NUMBERING STARTS AT 1
20REAL Samp(1:200) BUFFER!CREATE BUFFER ARRAY
30ASSIGN @Dvm TO 722!ASSIGN MULTIMETER ADDRESS
40ASSIGN @Samp TO BUFFER Samp(*) !ASSIGN BUFFER
50OUTPUT @Dvm;"PRESET FAST"!TARM SYN, TRIG AUTO, DINT FORMATS
60OUTPUT @Dvm;"MEM FIFO"!FIRST-IN-FIRST-OUT READING MEMORY
70OUTPUT @Dvm;"MFORMAT SINT"!SINT MEMORY FORMAT
80OUTPUT @Dvm;"OFORMAT DREAL"!DOUBLE REAL OUTPUT FORMAT
90OUTPUT @Dvm;"SSDC 10"!SUB-SAMPLING, 10 V RANGE, DC-COUPLED
100OUTPUT @Dvm;"SWEEP 5E-6,200"!5 µs EFF. INTERVAL, 200 SAMPLES
110TRANSFER @Dvm TO @Samp;WAIT!TRANSFER SAMPLES TO CONTROLLER BUFFER
120FOR I=1 TO 200
130 IF ABS(Samp(I))=lE+38 THEN!DETECT OVERLOAD
140
150 ELSE!IF NO OVERLOAD OCCURRED:
160
170
180 END IF
190NEXT I
200END
214
(When sub-sampling, the delay is inserted between the sync source event and
the first sample in each burst; the default delay for sub-sampling is 0 seconds.)
PRINT "Overload Occurred"!PRINT OVERLOAD MESSAGE
Samp(I)=DROUND(Samp(I),5)!ROUND TO 5 DIGITS
PRINT Samp(I)!PRINT EACH SAMPLE
Keysight 3458A User's Guide

Publicité

loading