Chapter 5 RS-232 Library
© National Instruments Corporation 5-31 LabWindows/CVI Standard Libraries
SetXMode
int result = SetXMode (int COMPort, int mode);
Purpose
Enables or disables software handshaking by enabling or disabling XON/XOFF sensitivity on
transmission and reception of data.
Parameters
Input COMPort integer Range 1 through 16.
mode integer 0 to disable, non-zero to enable.
Return Value
result integer Refer to error codes in
Table 5-6.
Using This Function
By default, XON/XOFF sensitivity is disabled. See the Software Handshaking section at the
beginning of this chapter.
The function returns an error if the port is not open or parameter values are invalid.
XModemConfig
int result = XModemConfig (int COMPort, double startDelay,
int maximum#ofRetries, double waitPeriod,
int packetSize);
Purpose
Sets the XModem configuration parameters for the specified com port.