![Fluke 522A/6 Operator'S Manual Download Page 186](http://html1.mh-extra.com/html/fluke/522a-6/522a-6_operators-manual_2310337186.webp)
5522A
Operators Manual
5-44
1100 ! Bus SRQ handler
1110 CLEAR PORT0 ! Make sure devices are not confused
1120 IF (SPL(6) AND 64) THEN GOSUB 1200 ! If (STB.RQS) call SRQ
1130 ! TEST OTHER DEVICES RQS BITS IF DESIRED
1140 RESUME
1200 ! 5522A SRQ handler
1210 IF (SPL(6) AND 8) THEN GOSUB 1300 ! If (STB.EAV) call handler
1220 ! Test other STB bits if desired here
1299 RETURN
1300 ! 5522A STB.EAV (error) handler
1320 PRINT @6,
“
ERR?
”
! Read and clear error
1330 INPUT @6, E%, E$ ! Read in error # and explanation
1340 PRINT
“
Error# :
”
;E, E$ ! Print error # and explanation
1350 IF (E% <> 0) THEN GOTO 1320 ! Until no more errors
1360 STOP ! Other commands for your app
1370 END
Verifying a Meter in the IEEE-488 Bus
This program selects 10 V dc output, verifies that the Calibrator is set to 10 V, then
triggers a Fluke 45 to take a reading. It displays calibrator output, Fluke 45 reading, and
the meter error in ppm. The program assumes that the Calibrator bus address is 4 and the
Fluke 45 bus address is 1.
10 REM THIS PROGRAM VERIFIES THE ACCURACY OF A FLUKE 45 AT 10V DC
20 INIT PORT 0 ! INITIALIZE THE INTERFACE
30 CLEAR PORT 0 ! “
40 PRINT @1, “VDC;RATE 5;AUTO;TRIGGER 2” ! SETS FLUKE 45 TO 10V DC
50 PRINT @1, “OUT 10 V ; OPER; ! SET THE 5522A TO 10V DC
60 PRINT @4, “*WAI; OUT?” ! WAIT FOR SETTLE, REQUEST THE OUTPUT VALUE
70 PRINT @4, V,U$,F,V2,U2$ ! GET THE DATA FROM THE 5522A
80 PRINT @1, “*TRG;VAL?” ! TRIGGER 45 TO TAKE READING
90 INPUT @1, VM ! GET THE DATA FROM THE 45
100 ER = ABS(V - VM)/V * 1E6 ! COMPUTE ERROR
110 PRINT “5522 OUTPUT: “;V;U$ ! PRINT THE RESULTS
120 PRINT “45 MEASURED: “;VM;”V”
130 PRINT “ERROR: “;ER;”PPM”
140 END
Verifying a Meter on the RS-232 UUT Serial Port
This program selects 10 V dc output, verifies that the Calibrator is set to 10 V, then
triggers a Fluke 45 to take a reading. It displays Calibrator output, the Fluke 45 reading,
and the meter error in ppm. The program assumes that the Calibrator uses the IEEE-488
interface with bus address is 4 and the Fluke 45 is on the Calibrator SERIAL 2 TO UUT
port.
10 REM THIS PROGRAM VERIFIES THE ACCURACY OF A FLUKE 45 AT 10V DC
20 INIT PORT 0 ! INITIALIZE THE INTERFACE
30 CLEAR PORT 0 !
“
40 PRINT @4,
“
UUT_SEND `VDC;RATE S;AUTO;TRIGGER 2\n’
”
! SET FLUKE 45
50 PRINT @4,
“
UUT_RECV
”
! SEND THE FLUKE 45 PROMPT
60 PRINT @4, P$ ! GET THE FLUKE 45 PROMPT
70 PRINT @4,
“
OUT 10 V ; OPER
”
! SET THE 5522A TO 10 V DC
80 PRINT @4,
“
*WAI; OUT?
”
! WAIT FOR SETTLE; GET VALUE
90 PRINT @4,
“
V,U$,F,V2,U2$
”
! GET THE DATA FROM 5522A
100 PRINT @4,
“
UUT_SEND `*TRG; VAL?\n’
”
! TRIGGER FLUKE 45 READING
110 PRINT @4,
“
UUT_RECV?
”
! SEND 45 READING TO 5522A
120 INPUT @4, VM, P$ ! GET 45 READING AND PROMPT
130 ER = ABS (V - VM)/V * 1E6 ! COMPUTE ERROR
140 PRINT
“
5522 OUTPUT:
“
;V;U$ ! PRINT THE RESULTS
150 PRINT
“
FLUKE 45 MEASURED:
“
;ER;
”
PPM
”
! PRINT THE RESULTS
160 END
Using *OPC?, *OPC, and *WAI
The
*OPC?
,
*OPC
, and
*WAI
commands let you maintain control of the order of execution of
commands that could otherwise be passed up by subsequent commands.
If you had sent an
OUT
command, you can check if the output has settled be sending the
query
*OPC?
. As soon as the
OUT
command has completed (output settled), a “1” appears
Summary of Contents for 522A/6
Page 4: ......
Page 14: ...5522A Operators Manual x...
Page 18: ...5522A Operators Manual xiv...
Page 22: ...5522A Operators Manual 1 2...
Page 46: ...5522A Operators Manual 1 26...
Page 48: ...5522A Operators Manual 2 2...
Page 54: ...5522A Operators Manual 2 8...
Page 56: ...5522A Operators Manual 3 2...
Page 190: ...5522A Operators Manual 6 2...
Page 240: ...5522A Operators Manual 7 2...
Page 260: ...5522A Operators Manual 8 2...
Page 314: ...5522A Operators Manual 9 52...
Page 370: ...5522A Operators Manual 10 56...
Page 413: ...B 1 Appendix B ASCII and IEEE 488 Bus Codes...
Page 414: ...5522A Operators Manual B 2...
Page 416: ...5522A Operators Manual B 4...