Writes the data in the string to write input parameter to the serial port indicated in the port number input parameter.

![]() |
port number is the serial port.
The following table shows the available port number and the corresponding device name on different operating systems.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
string to write is the data to write to the serial port. If the number of characters in the string to write input parameter is greater than the value of the buffer size input parameter specified in the Serial Port Init VI, the Serial Port Write VI writes the number of characters equal to the buffer size input parameter to the serial port. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
error code is the error or warning code. If error code is nonzero, an error occurred. You can wire error code to one of the error handler VIs, which describe the error and give you options on how to proceed when an error occurs. |