Chapter 7
G Mode Functions — stat
©
National Instruments Corporation
7-17
90
'bytes or until EOI is received.
100
RD$=SPACE$(30)
110
CALL IBRD(GPIB232%,RD$)
120
'Print the status information.
130
PRINT "GPIB-232/485CT-A status is: ";RD$
Example 3
10
'Turn on continuous status reporting,
20
'in symbolic format.
30
WRT$="stat c s"+CHR$(13)
40
CALL IBWRT(GPIB232%,WRT$)
50
'Read the GPIB-232/485CT-A status; read 50
60
'bytes or until EOI is received.
70
RD$=SPACE$(50)
80
CALL IBRD(GPIB232%,RD$)
90
'Print the status information.
100
PRINT "GPIB-232/485CT-A status is: ";RD$
Printed information is:
GPIB-232/485CT-A status is :
CMPL
NGER
NSER
3