Chapter 5
S Mode Functions — stat
5-48
www.ni.com
540
PRINT "GPIB-error = ";GPIBERR%
550
PRINT "Serial-error = ";SPERR%
560
STOP
Example 2
10
PRINT #1, "stat s"
20
'If it has just read 3 bytes from the
30
'GPIB, the GPIB-232/485CT-A responds
40
'with:CMPL,CIC,LACS<CR><LF>
50
'NGER<CR><LF>NSER<CR><LF>3<CR><LF>
Example 3
The following list illustrates what appears on the screen when you are programming the
GPIB-232/485CT-A from a terminal. GPIB-232/485CT-A responses are in bold text. The
statements in parentheses are comments.
stat c s n
(Enable continuous status reporting.)
344
0
0
3
CMPL,REM,ATN,TACS
( Status returned. )
NGER
NSER
3
wrt 10
ABCDE
( Write the string ABCDE. )
296
( to device 10. )
0
( Status returned. )
0
5
CMPL,CIC,TACS
NGER
NSER
5