Labview Serial Read


  1. Labview Serial Read Write Example
  2. Labview Read Serial Port Arduino
Hello friends, hope you all are fine and having fun with your life. Today’s post, as the name suggests is about How to Display Serial Data on Real Time Graph in Labview. In our previous post, we have seen that how to Get Continuous Data From COM Port in Labview. Today’s post is a sequel of this previous post so I would recommend that if you haven’t had a look on that post then first visit it as I am gonna start today’s post from where I stopped the previous one.

MB Serial Master Query Read Exception Status (poly).vi The master uses this VI to read the exception status from the slave. This corresponds to a public function code of 7 in the MODBUS protocol. VISA Read for serial will return a number of bytes from the serial port buffer to your program. However, the amount of data that it returns depends on 3 important details about your settings and your serial data: your termination character, the amount of data requested, and the timeout period. Arduino Compatible Compiler for LabVIEW Discussions How to get Serial Read data in strings. How to get Serial Read data in strings. May 10, 2016 7:50 am. Forum Posts: 4. Member Since: May 10, 2016. Hello, I am simply trying to read serial data in the form of string and simply writing again in the form of. Thanks to you all for taking the time to reply. The problem was solved. I was using the student version which does not include the VISA drivers.

Labview Serial Read Write Example

In the last post, we were able to get the continuous data from COM port using Labview and we have also separated the data based on a character which I have used this one “,” i.e. comma. Now, suppose you are sending 3 values from your COM port and these are the sensors’ values so tthe best way to display these value is by using a graph. In the last post we separated the values and displayed them in a 1D array, so today we are gonna display those values in a graph. As I have taken three values so today I am gonna plot 3 graphs. Each graph will show one of the values and display them in real time. Let’s start it.

In today’s tutorial, I will explain in detail How to get continuous data from COM Port in LabView software. LabView is a very handy tool for the engineers. One can easily plot graphs and can work on different hardware modules with it. One of the best feature of LabView is its extensive help desk.

Display Serial Data on Real Time Graph in Labview

  • In the last post, we have the below vi at the end. This vi get continuous data from the COM Port and then display it in the Response and the 1D array.
Labview read serial data


  • As you can see in the above figure, the logic we used is quite simple, what we did is we simply get the array just before Data 1D and then broke it into parts i.e. array(0), array(1) and array(2) and then fed it to the Graph plots.
  • In this particular example I am using accelerometer IMUv2 and displaying its values on the graph.
  • After adding these blocks you are done. Now press Ctrl+T and open the Front Panel. My front Panel looks like as shown in below figure:
  • Now, you can see the data is displayed. In this vi, we have displayed the data in three formats:
  1. Response: It shows the complete data coming from the Serial Port.
  2. Data1D: It separates the data and then displays it in digital format.
  3. Graphs: They plot the real time graph of the coming data.

I have attached the vi below for download but I would recommend you guys to design it by yourself so that you learn the most out of it.

Download the Labview vi


JLCPCB – Prototype 10 PCBs for $2 (For Any Color)

China’s Largest PCB Prototype Enterprise, 600,000+ Customers & 10,000+ Online Orders Daily
How to Get PCB Cash Coupon from JLCPCB: https://bit.ly/2GMCH9w

Category: LabView TutorialsBy Syed Zain Nasir16 CommentsLabview serial read delay

Labview Read Serial Port Arduino

Author: Syed Zain Nasir

https://www.theengineeringprojects.com/I am Syed Zain Nasir, the founder of <a href=https://www.TheEngineeringProjects.com/>The Engineering Projects</a> (TEP). I am a programmer since 2009 before that I just search things, make small projects and now I am sharing my knowledge through this platform.I also work as a freelancer and did many projects related to programming and electrical circuitry. <a href=https://plus.google.com/+SyedZainNasir/>My Google Profile+</a>

Comments are closed.