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

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

Advertisement

5-61. Verifying a Meter on the IEEE-488 Bus

This program selects 10 V dc output, verifies that the 5500A 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
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 "5500 OUTPUT: ";V;U$
120 PRINT "45 MEASURED: ";VM;"V"
130 PRINT "ERROR:
140 END

5-62. Verifying a Meter on the RS-232 UUT Serial Port

This program selects 10 V dc output, verifies that the 5500A Calibrator is set to 10 V,
then triggers a Fluke 45 to take a reading. It displays 5500A Calibrator output, the Fluke
45 reading, and the meter error in ppm. The program assumes that the 5500A Calibrator
uses the IEEE-488 interface with bus address is 4 and the Fluke 45 is on the 5500A
Calibrator SERIAL 2 TO UUT port.
10
REM
THIS PROGRAM VERIFIES THE ACCURACY OF A FLUKE 45 AT 10V DC
20
INIT PORT 0
30
CLEAR PORT 0
40
PRINT @4, "UUT_SEND `VDC;RATE S;AUTO;TRIGGER 2\n'" ! SET FLUKE 45
50
PRINT @4, "UUT_RECV"
60
PRINT @4, P$
70
PRINT @4, "OUT 10 V ; OPER"
80
PRINT @4, "*WAI; OUT?"
90
PRINT @4, "V,U$,F,V2,U2$"
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 "5500 OUTPUT: ";V;U$
150 PRINT "FLUKE 45 MEASURED: ";ER;"PPM"
160 END

5-63. 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 in the output buffer. You should always follow an *OPC? command with a read
command. The read command causes program execution to pause until the addressed
instrument responds. The following sample program shows how you can use *OPC?.
10 PRINT @4, "OUT 100V,1KHZ;OPER; *OPC?" ! 5500A ADDRESS IS 4
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 5500A TO 10V DC
! GET THE DATA FROM THE 5500A
! 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 5500A TO 10 V DC
! WAIT FOR SETTLE; GET VALUE
! GET THE DATA FROM 5500A
! TRIGGER FLUKE 45 READING
! SEND 45 READING TO 5500A
! GET 45 READING AND PROMPT
! COMPUTE ERROR
! PRINT THE RESULTS
! PRINT THE RESULTS
! READ THE "1" FROM THE 5500A
Remote Operation
Remote Program Examples
5
5-45

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents