Télécharger Imprimer la page

Keysight Technologies 3458A Guide D'utilisation page 348

Multimètre

Publicité

6
Command Reference
60 OUTPUT @Dvm; "MEM FIF0" !FIRST-IN-FIRST-OUT READING MEMORY
70 OUTPUT @Dvm; "MFORMAT SINT" !SINT MEMORY FORMAT
80 OUTPUT @Dvm; "OFORMAT DREAL" !DOUBLE REAL OUTPUT FORMAT
90 OUTPUT @Dvm; "SSDC 10" !SUB-SAMPLING, 10 V RANGE, DC-COUPLED
100 OUTPUT @Dvm; "SWEEP 5E - 6,200" !5 µs EFF. INTERVAL, 200 SAMPLES
110 TRANSFER @Dvm TO @Samp;WAIT !TRANSFER SAMPLES TO CONTROLLER BUFFER
120 FOR I=1 TO 200
130 IF ABS(Samp(I))=1E+38 THEN !DETECT OVERLOAD
140 PRINT "Overload Occurred" !PRINT OVERLOAD MESSAGE
150 ELSE !IF NO OVERLOAD OCCURRED:
160 Samp(I)=DROUND(Samp(I),5) !ROUND TO 5 DIGITS
170 PRINT Samp(I) !PRINT EACH SAMPLE
180 END IF
190 NEXT I
200 END
In the program on the following page, the SSAC command is used to digitize a
10 kHz signal with a peak value of 5 V. The SWEEP command instructs the
multimeter to take 1000 samples (Num_samples variable) with a 2 µs
effective_interval (Eff_int variable). The measurement uses the default level
triggering for the sync source event (trigger from input signal, 0%, AC-coupling,
positive slope). Line 120 generates a SYN event and transfers the samples directly
to the computer. Lines 240 through 410 sort the sub-sampled data to produce the
composite waveform. The composite waveform is stored in the Wave_form array.
10 OPTION BASE 1 !COMPUTER ARRAY NUMBERING STARTS AT 1
20 INTEGER Num_samples,Inc,I,J,K,L !DECLARE VARIABLES
30 Num_samples=1000 !DESIGNATE NUMBER OF SAMPLES
40 Eff_int=2.0E-6 !DESIGNATE EFFECTIVE INTERVAL
50 INTEGER Int_samp(1:1000) BUFFER !CREATE INTEGER BUFFER
60 ALLOCATE REAL Wave_form(1:Num_samples) !CREATE ARRAY FOR SORTED DATA
70 ALLOCATE REAL Samp(1:Num_samples) !CREATE ARRAY FOR SAMPLES
80 ASSIGN @Dvm TO 722 !ASSIGN MULTIMETER ADDRESS
90 ASSIGN @Int_samp TO BUFFER Int_samp(*) !ASSIGN BUFFER I/O PATH NAME
348
Keysight 3458A User's Guide

Publicité

loading