Chapter 5 RS-232 Library
© National Instruments Corporation 5-27 LabWindows/CVI Standard Libraries
Parameters
Input COMPort integer Range 1 through 32.
deviceName string Name of the COM port.
baudRate long Either 110, 150, 300, 600, 1200, 2400, 4800,
9600, 14400, 19200, 28800, 38400, 56000,
57600, 115200, 128000, or 256000.
SPARCstations do not support 14400, 28800,
56000, 57600, 115200, 128000, and 256000.
PCs do not support 150. Some PC serial
drivers do not support 115200, 128000,
and 256000.
parity integer 0—no parity.
1—odd parity.
2—even parity.
3—mark parity.
4—space parity.
dataBits integer Either 5, 6, 7, or 8.
stopBits integer Either 1 or 2.
inputQueueSize integer 0 selects 512. See discussion below.
outputQueueSize integer 0 selects 512. See discussion below.
Return Value
result integer Refer to error codes in Table 5-6.
Parameter Discussion
deviceName is the name of the com port in the ASCII string. For example, COM1 for com port 1
on Microsoft Windows using COMM.DRV, and /dev/ttya for com port 1 on UNIX using the
Zilog 8530 SCC serial comm driver.
If you pass a NULL pointer or an empty string for deviceName, the library uses the following
device names depending on the COM port number you have specified.
Port Number deviceName on Windows deviceName on UNIX
1 “COM1” “/dev/ttya”
2 “COM2’ “/dev/ttyb”
3 “COM3” “/dev/ttys1”
4 “COM4” “/dev/ttys2”
and so on