Serial Communication - Basic Serial Write and Read

Publish Date: Dec 18, 2017 | 52 Ratings | 3.40 out of 5 | Print | 4 Customer Reviews | Submit your review

This example demonstrates basic serial features. This example opens one VISA resource and configures one COM port. It then performs a serial port read, a serial port write, or both based on the options (read or write) that the user selects on the front panel. If both are selected, the VI will first write data, then read data, and finally close the VISA session that is opened to the port. If a read is performed, this VI will wait until the specified number of bytes is received at the port. Only the number of bytes specified will be read.

For more Serial examples please see the related resources or the LabVIEW Example Finder. To navigate to the LabVIEW example finder open LabVIEW and select Help>>Find Examples. The Example Finder window will open, from there you can open Hardware Input and Output >> Serial to find additional Serial examples.

Related Resources


Back to Top

Customer Reviews
4 Reviews | Submit your review

Crashes  - Apr 13, 2016

This VI becomes unresponsive when I attempt to change the VISA resource name or the baud rate. It happens whether or not the VI is running. Windows 7 Lab View 2015

single-line summary  - Oct 28, 2015


  - Feb 20, 2014

I have a problem in VISA serial is that when I am writing the strings in to the serial port I am not getting these strings in read buffer of VISA serial read.

  - Oct 25, 2007

good job

View more reviews

Bookmark & Share





Rate this document

Answered Your Question?
Yes No