OHM, OHMF
214 Chapter 6 Command Reference
The preceding program used the TRANSFER statement to get readings from the
multimeter. The following program uses the ENTER statement to transfer
readings to the computer using the DREAL format. The ENTER statement is
easier to use since no I/O path is necessary but is much slower than the
TRANSFER statement. Also when using the ENTER statement, you must use the
FORMAT OFF command to instruct the controller to use its internal data structure
instead of ASCII.
10 OPTION BASE 1 !COMPUTER ARRAY NUMBERING STARTS AT
20 Num_readings=20 !NUMBER OF READINGS = 20
30 ALLOCATE REAL Rdgs(l:Num_readings)!CREATE ARRAY FOR READINGS
40 ASSIGN @Dvm TO 722 !ASSIGN MULTIMETER ADDRESS
50 OUTPUT @Dvm;"PRESET NORM;OFORMAT DREAL;NPLC 10;NRDGS ";Num_readings
55 !TRIG SYN, DCV AUTORANGE, DREAL OUTPUT FORMAT,10 PLC, 20 READINGS/TRIG
60 ASSIGN @Dvm;FORMAT OFF !USE 8-BYTE/WORD DATA STRUCTURE
70 FOR I=1 TO Num_readings
80 ENTER @Dvm;Rdgs(I) !ENTER EACH READING
90 IF ABS(Rdgs(I))=1.E+38 THEN !IF OVERLOAD OCCURRED:
100 PRINT "OVERLOAD OCCURRED" !PRINT OVERLOAD MESSAGE
110 ELSE !IF NO OVERLOAD OCCURRED
120 Rdgs(I)=DROUND(Rdgs(I),8) !ROUND READINGS TO 8 DIGITS
130 PRINT Rdgs(I) !PRINT READINGS
140 END IF
150 NEXT I
160 END
OHM, OHMF
Refer to the FUNC command.
OPT?
Option Query. Returns a response indicating the multimeter's installed options.
The possible responses are:
0 = No installed options
1 = Extended Reading Memory Option
Syntax OPT?
Remarks • Related Commands: QFORMAT
Example 10 OUTPUT 722;"OPT?" !QUERY INSTALLED OPTIONS
20 ENTER 722;A$ !ENTER RESPONSE
30 PRINT A$ !PRINT RESPONSE
40 END