Chapter 8
G Mode Functions
© National Instruments Corp.
8-21
GPIB-232CT User Manual
The power-on default is that XON/XOFF for both cases is
disabled.
If you call
xon
without an argument, the GPIB-232CT returns
to you the current settings (1=protocol enabled, 0=protocol
disabled).
Examples:
1.
WRT$="XON 1,1"+CHR$(13)
'Enable GPIB-232CT
CALL IBWRT(GPIB232%,WRT$)
'XON/XOFF protocol
'for TX and RX.
2.
WRT$="XON 0,1"+CHR$(13)
'Disable protocol on
CALL IBWRT(GPIB232%,WRT$)
'TX; enable protocol
'on
RX.
3.
WRT$="XON"+CHR$(13)
'Return current settings.
CALL
IBWRT(GPIB232%,WRT$)
CALL IBRD(GPIB232%,RESP$)
'RESP$ contains
'0,1<CR><LF>
'(transmit protocol
'disabled, receive
'protocol
enabled).