Chapter 5
S Mode Functions — xon
5-58
www.ni.com
If you call
xon
without an argument, the GPIB-232/485CT-A returns the current handshake
settings: 1 if the protocol is enabled or 0 if protocol is disabled.
The assignment made by
xon
remains in effect until you call
xon
again, call
onl
, or turn off
the GPIB-232/485CT-A.
Example 1
PRINT #1,"XON 1,1"
'Enable GPIB-232/485CT-A XON/XOFF
‘
'protocol for TX and RX.
Example 2
PRINT #1,"XON 0,1"
'Disable protocol on TX; enable protocol
'on RX.
Example 3
PRINT #1,"XON"
'Return current settings.
response: 0,1<CR><LF> (transmit protocol disabled, receive
protocol enabled)
Example 4
PRINT #1, "XON ,0"
'Disable protocol on RX, keep current
'setting on TX.