|Download Help (Windows Only)|
Owning Palette: Serial Compatibility VIs
Requires: Embedded Module for ARM Microcontrollers, Mobile Module, or Touch Panel Module
Initializes the selected serial port to the settings you specify.
|Note This VI clears the buffer of any existing data. Use this VI only if you want to reset the serial port completely.|
|flow control etc. enables you to set options for the serial port. |
|buffer size indicates the size of the input and output buffers the VI allocates for communication through the specified port. You might need to use larger buffers for large data transfers. The buffer size is in bytes. The default is 0, which instructs the system to keep the same buffer size as before. |
(Windows and Pocket PC) LabVIEW limits buffer size to 65534 bytes (or 64 – 2 KB). The value must be even on Windows.
|port number is the serial port. The following table shows the available port number and the corresponding device name on different operating systems. |
|baud rate is the rate of transmission. The default is 9600.|
|data bits is the number of bits in the incoming data and can be between 5 and 8. The default is 8.|
|stop bits specifies the number of stop bits used to indicate the end of a frame. |
|parity specifies the parity used to transmit or receive every frame. |
|error code is the error or warning code. error code is –1 if baud rate, data bits, stop bits, parity, or port number are out of range or if the VI could not initialize the serial port. Check the values of baud rate, data bits, stop bits, parity, and port number. If these values are valid, verify that the serial port has been initialized.|