National Instruments GPIB-MAC User Manual page 78

Table of Contents

Advertisement

November 1985
Example:
PRINT #l,"rsp 1+28,5,9" 'Poll 3 devices.
response:
FOR I=0 to 2
LINE INPUT #l ,RESP$
IF SPR%(I) = -1 THEN GOSUB 1000 '1000 is an error
NEXT1
REM Code will now interpret serial poll responses.
SECTION FOUR - FUNCTIONS
67
(device 9 did not respondwithin
the timeout period)
3
Read
responses from serial port
'buffer.
'Store each serial poll response in
'the array SPR%.
'routine.

Advertisement

Table of Contents
loading

Table of Contents