User`s manual
CHAPTER 4 PROGRAMMING TECBNIQUES
47
4.5. Multiple Device Triggering
10 'FILE NAME : EXAMPLE.5
20 'Program Example : MULTIPLE DEVICE TRIGGERING
30 '
40 'Purpose : This program triggers 2 voltmeters at the same
50 'time to make the measurement simultaneously.
60 '
70 'Remark : This program is written for the HP3478A DVM. If
80 ' another model of voltmeter is used, please check
90 ' the operating manual and make necessary
100 ' modification to this program.
110 '
120 'Initialization
130 '
140 CLS
150 DEF SEG=&HD000
160 ABORT%=9 : ENTER%=6 : OUTPUT%=3 : SEND%=36 : STATUS%=42
170 TRIGGER%=48
180 ADDR1%=23 : ADDR2%=24
190 CALL ABORT%
200 '
210 '
220 'Set the DVM’s
230 '
240 D$=l’FlT3R2N5'’
250 CALL OUTPUT%(ADDR1%,D$) ‘ Send DVM #1 setting string
260 CALL OUTPUT%(ADDR2%,D$) ‘ Send DVM #2 setting string
270 GOSUB 550 ‘ Error check
280 IF ER%<>0 TuEN PRINT “Error when setting DVM.” : END
290 '
300 '
310 'Measurement start
320 '
330 FOR I=1 TO 10
340 '
350 CMD$=’UNL UNT MTA LISTEN 23 24 GET”
360 CALL SEND%(CMD$) ‘ Trigger the DVM’s
370 '
380 D1$=SPACE$(40)
390 CALL ENTER%(ADDR1%,D$) ‘ Enter DVM #1 reading
400 GOSUB 550 ‘ Error check
410 IF ER%<>0 TuEN PRINT “Error when reading DVM #1.” : END