EasyManua.ls Logo

Fluke Calibration 5560A - Verify a Meter in the IEEE-488 Bus

Default Icon
120 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Calibrator
Remote Program Examples
39
If you want to use SRQs, first use the *SRE, *ESE, and ISCE commands to enable the desired event.
See Check Product Status.
10 INIT PORT0 ! IFC the bus
20 CLEAR PORT0 ! DCL the bus
30 ! INITIALIZE THE 5560A SRQ HANDLER
40 PRINT @4, “*SRE 8” ! Enable STB.EAV (error available)
50 ON SRQ GOTO 1100 ! Install SRQ handler
60 ! Body of the application goes here
1100 ! Bus SRQ handler
1110 CLEAR PORT0 ! Make sure devices are not
confused
1120 IF (SPL(4) AND 64) THEN GOSUB 1200 ! If (STB.RQS) call SRQ
1130 ! TEST OTHER DEVICES RQS BITS IF DESIRED
1140 RESUME
1200 ! 5560A SRQ handler
1210 IF (SPL(4) AND 8) THEN GOSUB 1300 ! If (STB.EAV) call handler
1220 ! Test other STB bits if desired here
1299 RETURN
1300 ! 5560A STB.EAV (error) handler
1320 PRINT @4, “ERR?” ! Read and clear error
1330 INPUT @4, 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
Verify 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 measurement. It shows 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 @4, “OUT 10 V ; OPER; ! SET THE 5560A TO 10V DC
60 PRINT @4, “*WAI; OUT?” ! WAIT FOR SETTLE, REQUEST THE OUTPUT VALUE
70 INPUT @4, V,U$,F,V2,U2$ ! GET THE DATA FROM THE 5560A
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 “5560 OUTPUT: “;V;U$ ! PRINT THE RESULTS
120 PRINT “45 MEASURED: “;VM;”V”
130 PRINT “ERROR: “;ER;”PPM”
140 END

Table of Contents