5502A
Operators Manual
5-48
Verify a Meter on the IEEE-488 Bus
This program selects 10 V dc output, makes sure that the Calibrator is set to 10 V, then
triggers a Fluke 45 to get a reading. It shows calibrator output, Fluke 45 indication, and
the meter error in ppm. For this program, 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 5502A 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 5502A
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 “5502 OUTPUT: “;V;U$ ! PRINT THE RESULTS
120 PRINT “45 MEASURED: “;VM;”V”
130 PRINT “ERROR: “;ER;”PPM”
140 END
Verify a Meter on the RS-232 UUT Serial Port
This program selects 10 V dc output, makes sure that the Calibrator is set to 10 V, then
triggers a Fluke 45 to get a reading. It shows Calibrator output, the Fluke 45 indication,
and the meter error in ppm. For this program, the Calibrator uses the IEEE-488 interface
with bus address 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 5502A 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 5502A
100 PRINT @4,
“
UUT_SEND `*TRG; VAL?\n’
”
! TRIGGER FLUKE 45 READING
110 PRINT @4,
“
UUT_RECV?
”
! SEND 45 READING TO 5502A
120 INPUT @4, VM, P$ ! GET 45 READING AND PROMPT
130 ER = ABS (V - VM)/V * 1E6 ! COMPUTE ERROR
140 PRINT
“
5502 OUTPUT:
“;
V;U$ ! PRINT THE RESULTS
150 PRINT
“
FLUKE 45 MEASURED:
“;
ER;
”
PPM
”
! PRINT THE RESULTS
160 END
Use *OPC?, *OPC, and *WAI
The
*OPC?
,
*OPC
, and
*WAI
commands let you keep control of the sequence of execution of
commands that could be passed up by subsequent commands.
If you had sent an
OUT
command, you can make sure that the output has become stable by
sending the query
*OPC?
. When the
OUT
command has completed (output settled), a “1” is
shown in the output buffer. You must follow an
*OPC?
command with a read command.
The read command makes the program execution pause until the addressed instrument
answers. The subsequent sample program shows how you can use
*OPC?
.
10 PRINT @4,
“
OUT 100V,1KHZ/;/OPER/;/ *OPC?
”
! 5502A ADDRESS IS 4
20 INPUT @4, A
! READ THE
“
1
”
FROM THE 5502A
30 !PROGRAM HALTS HERE UNTIL A
“
1
”
IS PUT INTO THE OUTPUT BUFFER
40 PRINT
“
OUTPUT SETTLED
”
Содержание 5502A
Страница 4: ......
Страница 12: ...5502A Operators Manual xii ...
Страница 46: ...5502A Operators Manual 2 2 ...
Страница 52: ...5502A Operators Manual 2 8 ...
Страница 54: ...5502A Operators Manual 3 2 ...
Страница 70: ...5502A Operators Manual 3 18 S1 S to T to S1 gvx032 eps Figure 3 4 SETUP Softkey Menu Displays cont ...
Страница 142: ...5502A Operators Manual 4 68 ...
Страница 193: ...6 1 Chapter 6 Remote Commands Title Page Introduction 6 3 Command Summary by Function 6 3 Commands 6 10 ...
Страница 194: ...5502A Operators Manual 6 2 ...
Страница 240: ...5502A Operators Manual 7 2 ...
Страница 260: ...5502A Operators Manual 7 22 ...
Страница 261: ...8 1 Chapter 8 Accessories Title Page Introduction 8 3 Rack Mount Kit 8 4 IEEE 488 Interface Cable 8 4 5500A LEADS 8 4 ...
Страница 262: ...5502A Operators Manual 8 2 ...
Страница 365: ...B 1 Appendix B ASCII and IEEE 488 Bus Codes ...
Страница 366: ...5502A Operators Manual B 2 ...
Страница 368: ...5502A Operators Manual B 4 ...
Страница 378: ...5502A Operators Manual D 6 ...