Taking A Thermocouple Measurement; Taking A Pressure Measurement - Fluke 5520A Operator's Manual

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

Advertisement

5520A
Operators Manual
The *OPC command is similar in operation to the *OPC? query, except that it sets bit 0
(OPC for "Operation Complete") in the Event Status Register to 1 rather than sending a
1 to the output buffer. One simple use for *OPC is to include it in the program in order
for it to generate an SRQ (Service Request). Then an SRQ handler written into the
program can detect the operation complete condition and respond appropriately. You can
use *OPC similarly to *OPC?, except your program must read the ESR to detect the
completion of all operations. The following sample program shows how you can use
*OPC.
10 REMOTE
20 PRINT @4, "OUT 100V,1KHZ;OPER;*OPC"
30 PRINT @4, "*ESR?"
40 INPUT @4, A%
50 IF (A% AND 1%) = 0% GOTO 30
60 PRINT "OUTPUT SETTLED"
70 END
The *WAI command causes the Calibrator to wait until any prior commands have been
completed before continuing on to the next command, and takes no other action. Using
*WAI is a convenient way to halt operation until the command or commands preceding
it have completed. The following sample program shows how you can use *WAI.
10 REMOTE
20 PRINT @4, "OUT 100V,1KHZ;OPER;*WAI"
30 PRINT @4, "OUT?"
40 PRINT @4, A$,B$,C$
50 PRINT "OUTPUT SETTLED"
60 PRINT "OUTPUT IS: ";A$;B$;" at ";C$
70 END

5-64. Taking a Thermocouple Measurement

The following program takes one temperature measurement at a time.
10 REM Set Bus Timeout to 20 seconds, Init IEEE Bus
20 TIMEOUT 20 * 1000
30 INIT PORT 0
40 CLEAR @6
100 REM Reset 5520A, TC measurement mode
110 PRINT @6,"*RST; TC_TYPE J; TC_MEAS FAR"
200 PRINT "Hit Carriage Return to take a Reading"
210 INPUTLINE A$
220 REM Request the measurement value
230 PRINT @6, "VAL?"
240 REM Read measurement, unit
250 INPUT @6, M,U$
260 GOTO 200

5-65. Taking a Pressure Measurement

The following program takes one pressure measurement at a time.
10 REM Set Bus Timeout to 20 seconds, Init IEEE Bus
20 TIMEOUT 20 * 1000
30 INIT PORT 0
40 CLEAR @6
100 REM Reset 5520A, pressure measurement mode
110 PRINT @6,"*RST; PRES_MEAS "
200 PRINT "Hit Carriage Return to take a Reading"
210 INPUTLINE A$
220 REM Request the measurement value
230 PRINT @6, "VAL?"
240 REM Read measurement, unit
250 INPUT @6, M,U$
260 GOTO 200
5-48
! 5520A ADDRESS IS 4
! PUT THE ESR BYTE IN BUFFER
! READ THE ESR BYTE
! TRY AGAIN IF NO OPC
! 5520A ADDRESS IS 4
! READ THE OUTPUT VALUE
! A$ CONTAINS THE OUTPUT VALUE

Advertisement

Table of Contents
loading

Table of Contents