RS-232 Library Chapter 5
LabWindows/CVI Standard Libraries 5-28 © National Instruments Corporation
Under UNIX, the inputQueueSize and outputQueueSize parameters are ignored. The serial
driver determines the queue size.
Under Windows, if you specify 0 for inputQueueSize or outputQueueSize, 512 is used. If you
specify a value between 0 and 30, 30 is used. On Windows 95 and NT, there is no maximum
limitation on the queue size. On Windows 3.1, the maximum queue size is 65535. However,
some serial drivers have a maximum of 32767 and give undefined behavior when you use a
larger queue size. It is recommended that you use a queue size no greater than 32767.
Under Windows 3.1, the baudRate value may be from 0 to 0xffff. Values below 0xff00 are
interpreted by the comm driver literally. Values from 0xff00 to 0xffff are codes defined by
the particular comm driver to represent rates higher than 0xfeff.
Under Windows 95 and NT, all baudRate values are interpreted literally by the comm driver.
Using This Function
The function disables XON/XOFF mode, and CTS hardware handshaking. The default time-out
for I/O operations is 5 seconds. Refer to the functions SetXMode, SetCTSMode, and
SetComTime if you want to change these defaults.
If the specified port is already open, OpenComConfig closes the port (see CloseCom) then
opens it again.
ReturnRS232Errint status = ReturnRS232Err (void);
Purpose
Returns the value of rs232err.
Parameters
None
Return Value
status integer Refer to error codes in
Table 5-6.