Verify A Meter On The Ieee-488 Bus; Verify A Meter On The Rs-232 Uut Serial Port; Use *Opc?, *Opc, And *Wai - Fluke 5502A Operator's Manual

Multi-product calibrator
Hide thumbs Also See for 5502A:
Table of Contents

Advertisement

5502A
Operators Manual

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.

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.

Use *OPC?, *OPC, and *WAI

The
commands that could be passed up by subsequent commands.
If you had sent an
sending the query
shown in the output buffer. You must follow an
The read command makes the program execution pause until the addressed instrument
answers. The subsequent sample program shows how you can use *OPC?.
5-48
10 REM
THIS PROGRAM VERIFIES THE ACCURACY OF A FLUKE 45 AT 10V DC
20 INIT PORT 0
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;
60 PRINT @4, "*WAI; OUT?" ! WAIT FOR SETTLE, REQUEST THE OUTPUT VALUE
70 PRINT @4, V,U$,F,V2,U2$
80 PRINT @1, "*TRG;VAL?"
90 INPUT @1, VM
100 ER = ABS(V - VM)/V * 1E6
110 PRINT "5502 OUTPUT: ";V;U$
120 PRINT "45 MEASURED: ";VM;"V"
130 PRINT "ERROR:
140 END
10
REM
THIS PROGRAM VERIFIES THE ACCURACY OF A FLUKE 45 AT 10V DC
20
INIT PORT 0
30
CLEAR PORT 0
PRINT @4, "UUT_SEND `VDC;RATE S;AUTO;TRIGGER 2\n'" ! SET FLUKE 45
40
PRINT @4, "UUT_RECV"
50
60
PRINT @4, P$
PRINT @4, "OUT 10 V; OPER"
70
PRINT @4, "*WAI; OUT?"
80
PRINT @4, "V,U$,F,V2,U2$"
90
100 PRINT @4, "UUT_SEND `*TRG; VAL?\n'"
110 PRINT @4, "UUT_RECV?"
120 INPUT @4, VM, P$
130 ER = ABS (V - VM)/V * 1E6
140 PRINT "5502 OUTPUT: ";V;U$
150 PRINT "FLUKE 45 MEASURED: ";ER;"PPM"
160 END
,
, and
commands let you keep control of the sequence of execution of
*OPC?
*OPC
*WAI
command, you can make sure that the output has become stable by
OUT
. When the
*OPC?
10 PRINT @4, "OUT 100V,1KHZ/;/OPER/;/ *OPC?"
20 INPUT @4, A
30 !PROGRAM HALTS HERE UNTIL A "1" IS PUT INTO THE OUTPUT BUFFER
40 PRINT "OUTPUT SETTLED"
! INITIALIZE THE INTERFACE
! "
! SET THE 5502A TO 10V DC
! GET THE DATA FROM THE 5502A
! TRIGGER 45 TO TAKE READING
! GET THE DATA FROM THE 45
! COMPUTE ERROR
! PRINT THE RESULTS
";ER;"PPM"
! INITIALIZE THE INTERFACE
! "
! SEND THE FLUKE 45 PROMPT
! GET THE FLUKE 45 PROMPT
! SET THE 5502A TO 10 V DC
! WAIT FOR SETTLE; GET VALUE
! GET THE DATA FROM 5502A
! TRIGGER FLUKE 45 READING
! SEND 45 READING TO 5502A
! GET 45 READING AND PROMPT
! COMPUTE ERROR
! PRINT THE RESULTS
! PRINT THE RESULTS
command has completed (output settled), a "1" is
OUT
command with a read command.
*OPC?
! 5502A ADDRESS IS 4
! READ THE "1" FROM THE 5502A

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents