Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Serial Port Write (PDA Module, Touch Panel Module, Embedded Development Module, Embedded Module for Blackfin Processors)

LabVIEW 8.5 Touch Panel Module Help
August 2007

NI Part Number:
371944B-01

»View Product Info

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

port number is the serial port. The following table shows the available port number and the corresponding device name on different operating systems.
port number Windows, Pocket PC, Windows Mobile VxWorks eCos UNIX
0 COM1 /tyCo/0 /dev/ser0 /dev/ttyS0
1 COM2 /tyCo/1 /dev/ser1 /dev/ttyS1
2 COM3 /tyCo/2 /dev/ser2 /dev/ttyS2
3 COM4 /tyCo/3 /dev/ser3 /dev/ttyS3
4 COM5 /tyCo/4 /dev/ser4 /dev/ttyS4
5 COM6 /tyCo/5 /dev/ser5 /dev/ttyS5
6 COM7 /tyCo/6 /dev/ser6 /dev/ttyS6
7 COM8 /tyCo/7 /dev/ser7 /dev/ttyS7
8 COM9 /tyCo/8 /dev/ser8 /dev/ttyS8
string to write is the data to write to the serial port. If the number of characters in string to write is greater than the value of the buffer size input in the Serial Port Init VI, the Serial Port Write VI writes the number of characters equal to the buffer size input 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.

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit