Fluke 2180A User Manual

Page 69

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

Advertising
background image

21X0A-004

Table 604-2. Switch 2, IEEE-488 Bus Address Selection

ADDRESS CODES

ADDRESS SWITCH SETTINGS

16
(5)

8

(4)

4

(3)

2

(

2

)

1

(

1

)

0

1

2

3
4
5
6
7
8

9

10

11
12

13
14
15
16
17

18

19

20
21
22
23
24
25
26
27
28
29
30

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

1
1
1
1
1
1
1

1

1
1
1
1
1
1
1

0
0
0
0
0
0
0
0

1
1

1

1
1
1
1

1

0
0
0
0
0
0
0
0

1
1
1

1

1
1
1

0
0
0
0

1
1
1
1

0
0
0
0

1

1

1
1
0

0
0
0

1
1

1
1

0
0
0
0

1

1
1

0
0

1
1

0
0

1
1

0
0

1
1

0
0

1

1

0
0

1
1

0
0

1
1

0
0

1

1

0
0

1

0

1

0

1

0

1

0

1

0

1

0

1

0

1

0

1

0

1

0

1

0

1

0

1

0

1

0

1

0

1

0

10 ON ERROR GOTO 230

20 ON CTRL/C GOTO 260

30 INIT PORT 0

40 CLEAR PORT 0

30 TRIG @2

60

70

80

90 ON SRQ GOTO 140

100

110

120 GOTO 120

130

140 IF SPL<2> < > 66 RESUME

150

160

170

180

190 INPUT @2/ A$

200

210 PRINT M

220 RESUME

230

240

230

PRINT

'OOPS!!!

ERROR

ERR;

260 PRI^4T 'bye-bye'

270 END

Initiali zation

Send “Group Execute Trigger" to

reset the -004# which is arbitrarily

set at address 2 on Port O.

Nouii tell the program uihat to do if an

SRQ comes.

Most of the time it just sits here.

”spl(2>“ clears the SRQ. The -004 sends

a 66(42 H e x ) i f i t set the SRQ.

otherwise it sends a O. This

discriminates between other instruments

on the Port that could send an SRQ.

This command gets the thermometer reading

from the -004.

This command prints the reading-

Ends the SRQ handling and goes to wait

for another-

ON LINE

ERL

Figure 604-1. SRQ Sample Program

604-3

Advertising