RS-232 Library Chapter 5
LabWindows/CVI Standard Libraries 5-36 © National Instruments Corporation
Error Conditions
If an error condition occurs during a call to any of the functions in the LabWindows/CVI RS-232
Library, the function returns an error code and the global variable rs232err contains that error
code. This code is a non-zero value that specifies the type of error that occurred. The currently
defined error codes and their meanings are given in Table 5-6.
Table 5-6. RS-232 Library Error Codes
Code Error Message
-1 Unknown system error.
-2 Invalid port number.
-3 Port is not open.
-4 Unknown I/O error.
-5 Unexpected internal error.
-6 No serial port found.
-7 Cannot open port.
-11 Memory allocation error in creating buffers.
-13 Invalid parameter.
-14 Invalid baud rate.
-24 Invalid parity.
-34 Illegal number of data bits.
-44 Illegal number of stop bits.
-90 Bad file handle.
-91 Error in performing file I/O.
-94 Invalid count (Must be greater than or equal to 0).
-97 Invalid interrupt level.
-99 I/O operation timed out.
-104 Value must be between 0 and 255.
-114 Requested input queue size must be 0 or greater.
-124 Requested output queue size must be 0 or greater.
-151 General I/O error.
-152 Buffer parameter is NULL.
-257 Packet was sent but no acknowledgment was received.
(continues)