Télécharger Imprimer la page

Keysight Technologies 3458A Guide D'utilisation page 278

Multimètre

Publicité

6
Command Reference
– You should not use the SINT or DINT output or memory format for frequency or
– Related commands: OFORMAT, SSAC, SSDC
Examples
SINT example
The following program outputs 10 readings in SINT format, retrieves the scale
factor, and multiplies the scale factor times each reading.
10 OPTION BASE 1 !COMPUTER ARRAY NUMBERING STARTS AT 1
20 INTEGER Int_rdgs (1:10) BUFFER !CREATE INTEGER BUFFER ARRAY
30 REAL Rdgs(1:10) !CREATE REAL ARRAY
40 Num_readings=10! NUMBER OF READINGS = 10
50 ASSIGN @Dvm TO 722 !ASSIGN MULTIMETER ADDRESS
60 ASSIGN @Int_rdgs TO BUFFER Int_rdgs(*) !ASSIGN BUFFER I/O PATH NAME
70 OUTPUT @Dvm;"PRESET NORM;OFORMAT SINT;NPLC 0;NRDGS ";Num_readings
75 !TARM AUTO, TRIG SYN, SINT OUTPUT FORMAT, MIN. INTEGRATION TIME
80 TRANSFER @Dvm TO @Int_rdgs;WAIT !SYN EVENT, TRANSFER READINGS INTO
81 !INTEGER ARRAY; SINCE THE COMPUTER'S INTEGER FORMAT IS THE SAME AS
85 !SINT,NO DATA CONVERSION IS NECESSARY HERE (INTEGER ARRAY REQUIRED)
90 OUTPUT @Dvm;"ISCALE?" !QUERY SCALE FACTOR FOR SINT FORMAT
100 ENTER @Dvm;S !ENTER SCALE FACTOR
110 FOR I=1 TO Num_readings
120 Rdgs(I)=Int_rdgs(I) !CONVERT EACH INTEGER READING TO REAL
125 !FORMAT (NECESSARY TO PREVENT POSSIBLE INTEGER OVERFLOW ON NEXT
LINE)
130 R=ABS(Rdgs(I)) !USE ABSOLUTE VALUE TO CHECK FOR OVLD
140 IF R>=32767 THEN PRINT "OVLD" !IF OVLD, PRINT OVERLOAD MESSAGE
150 Rdgs(I)=Rdgs(I)*S !MULTIPLY READING TIMES SCALE FACTOR
160 Rdgs(I)=DROUND(Rdgs(I),4) !ROUND TO 4 DIGITS
170 NEXT I
180 END
278
multimeter is configured but before readings are triggered or immediately after
the readings made.
period measurements when a real-time or post-process math function is
enabled (except STAT or PFAIL) or when autorange is enabled.
Keysight 3458A User's Guide

Publicité

loading