S Mode Functions
Chapter 5
GPIB-232CT User Manual
5-40
© National Instruments Corp.
Example:
1.
PRINT #1,"rsp 1+28,5,9"
'Poll 3 devices.
response: 42<CR><LF>
(device 9 did not
30<CR><LF>
respond within the
-1<CR><LF>
timeout period)
DIM SPR%(2)
'Read 3 responses from
FOR I=0 to 2
'serial port buffer.
LINE INPUT #1,SPR%(I) 'Store each serial poll
IF SPR%(I) = -1 THEN GOSUB 1000
NEXT I
'Response in the array.
'1000 is an error routine.
REM Code will now interpret poll responses.