Chapter 5 RS-232 Library
© National Instruments Corporation 5-25 LabWindows/CVI Standard Libraries
The following table further describes the events.
Event Constant
Name Description
LWRS_RXCHAR Set when any character is received and placed in the
receiving queue.
LWRS_RXFLAG Set when the event character is received and placed in the
receiving queue. The event character is specified in the
eventCharacter parameter of this function.
LWRS_TXEMPTY Set when the last character in the transmission queue is sent.
LWRS_CTS Set when the CTS (clear-to-send) line changes state.
LWRS_DSR Set when the DSR (data-set-ready) line changes state.
LWRS_RLSD Set when the RLSD (receive-line-signal-detect) line changes
state.
LWRS_BREAK Set when a break is detected on input.
LWRS_ERR Set when a line-status error occurs. Line-status errors are
CE_FRAME, CE_OVERRUN, and CE_RXPARITY.
LWRS_RING Set to indicate that a ring indicator was detected.
LWRS_RECEIVE Set to detect when at least notifyCount bytes are in the
input queue. Once this event has occurred, it does not
trigger again until the input queue falls below, and then rises
back above, notifyCount bytes.
OpenCom
int result = OpenCom (int COMPort, char deviceName[]);
Purpose
Opens a com port.
Parameter
Input COMPort integer Range 1 through 32.
deviceName string Name of the COM port.