VISA Configure Serial Port

Initializes the specified serial port to the specified settings.

Enable Termination Char prepares the serial device to recognize termination char. If TRUE (default), the VI_ATTR_ASRL_END_IN attribute is set to recognize the termination character. If FALSE, the VI_ATTR_ASRL_END_IN attribute is set to 0 (None) and the serial device does not recognize the termination char.
termination char calls for termination of the read operation. The read operation terminates when the termination char is read from the serial device. 0xA is the hex equivalent of a line feed character (\n). Change the termination char to 0xD for message strings that terminate with a carriage return (\r).
timeout sets the timeout value for the write and read operations.
VISA resource name specifies the resource to be opened. This control also specifies the session and class. Refer to VISA Resource Name Control for more information.
baud rate is the rate of transmission. The default value is 9600.
data bits is the number of bits in the incoming data. The value of data bits is between five and eight. The default value is 8.
parity is

0no parity (default)
1odd parity
2even parity
3mark parity
4space parity
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurs before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.
code is the error or warning code. The default is 0. If status is TRUE, code is a non-zero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.
stop bits specifies the number of stop bits used to indicate the end of a frame. The following table includes the valid values.

101 stop bit
151.5 stop bits
202 stop bits
flow control sets the type of control used by the transfer mechanism. The following table includes valid control values.

0None (default)—The transfer mechanism does not use flow control. Buffers on both sides of the connection are assumed to be large enough to hold all data transferred.
1XON/XOFF—The transfer mechanism uses the XON and XOFF characters to perform flow control. The transfer mechanism controls input flow by sending XOFF when the receive buffer is nearly full, and it controls the output flow by suspending transmission when XOFF is received.
2RTS/CTS—The transfer mechanism uses the RTS output signal and the CTS input signal to perform flow control The transfer mechanism controls input flow by unasserting the RTS signal when the receive buffer is nearly full, and it controls output flow by suspending the transmission when the CTS signal is unasserted.
4DTR/DSR—The transfer mechanism uses the DTR output signal and the DSR input signal to perform flow control. The transfer mechanism controls input flow by unasserting the DTR signal when the receive buffer is nearly full, and it controls output flow by suspending the transmission when the DSR signal is unasserted.
duplicate VISA resource name is a copy of the VISA resource name that is passed out of the VISA functions. Refer to VISA Resource Name Control for more information.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
code is the error or warning code. If status is TRUE, code is a non-zero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning.