S Mode Functions
Chapter 5
GPIB-232CT User Manual
5-52
© National Instruments Corp.
420
REM
..
500 REM Print GPIB-error and serial-error values
510 REM to determine what errors occurred.
520 PRINT "GPIB-error = ";GPIBERR%
530 PRINT "Serial-error = ";SPERR%
540
STOP
2.
10
PRINT #1, "stat s"
20
REM If it has just read 3 bytes from the
30
REM GPIB, the GPIB-232CT responds with:
40
REM CMPL,REM,ATN,LACS<CR><LF>NGER<CR><LF>
50
REM NSER<CR><LF>3<CR><LF>
3. The following list illustrates what appears on the screen when you are
programming the GPIB-232CT from a terminal. Programming
messages you enter are in regular type. GPIB-232CT responses are in
boldface
. 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