TEP , The Engineering Projects , Author Welcome! Syed Zain Nasir Mechatronics Engineer TEP , The ENgineering Projects , TEP Badge TEP , The Engineering Projects , Ratting Background 7.5 7.5/10
TEP , The Engineering Projects , Rating Percentage Background Reputation Score 55 / 100
Display Serial Data on Real Time Graph in Labview, Diplay data on graph in labview, labview graph plot
TEP , The Engineering Projects , Boxes

Display Serial Data on Real Time Graph in Labview

TEP , THe Engineering Projects , Shares 2.5K Views
TEP , The ENgineering Projects , Reaction 40
TEP , The ENgineering Projects , Reaction 700
TEP , The ENgineering Projects , Reaction 60
TEP , The ENgineering Projects , Reaction 25
TEP , The ENgineering Projects , Reaction 60
TEP , The Engineering Projects , Pintrest TEP , The Engineering Projects , Pintrest TEP , The Engineering Projects , Pintrest TEP , The Engineering Projects , Pintrest TEP , The Engineering Projects , Pintrest
Shares: 691
TEP , The Engineering Projects , PCBWAY

Display Serial Data on Real Time Graph in Labview, Diplay data on graph in labview, labview graph plot
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.

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.

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.
Display Serial Data on Real Time Graph in Labview, Diplay data on graph in labview, labview graph plot
  • In the above image, the Data 1D displays the values separately and differentiate it on the basis of a characters "," i.e. comma.
  • In other words, Data 1D has a array, which consists of three values coming from the serial port.
  • So if like we have sent the values 120,221,312, then the array(0) will have 120, array(1) will have 221 and finally the array(2) will have 312.
  • In order to plot the values on the graph separately, what we need to do is to simply get array(0) and then plot it vs time and so on, which is shown in below figure:
Display Serial Data on Real Time Graph in Labview, Diplay data on graph in labview, labview graph plot
  • 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:
Display Serial Data on Real Time Graph in Labview, Diplay data on graph in labview, labview graph plot
  • Now first of all select the COM port from which you are receiving the data. If you can't find yours, then click on the Referesh, you will find in the drop down.
  • Now, run the vi and then click on the Start button and you will start receiving the values. The values will be displayed in the Response as it is and then in the Data 1D and will also display on these graphs separately as shown in the below figure:
Display Serial Data on Real Time Graph in Labview, Diplay data on graph in labview, labview graph plot
  • 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

 
TEP , The Engineering Projects , Tags
Display Serial Data on Real Time Graph in Labview
Diplay data on graph in labview
labview graph plot
TEP , The Engineering Projects , Comments

Write a Comment

TEP , The Engineering Projects , WordPress TEP , The Engineering Projects , Google TEP , The Engineering Projects , Twitter TEP , The Engineering Projects , Facebook TEP , The Engineering Projects , User
TEP , The Engineering Projects , Robot
TEP , The Engineering Projects , Comments Comments on ‘’ Display Serial Data on Real Time Graph in Labview ‘’ (17)
TEP , The Engineering Projects , Comment
TEP , The ENgineering Projects , Reaction 40
TEP , The ENgineering Projects , Reaction 700
TEP , The ENgineering Projects , Reaction 60
TEP , The ENgineering Projects , Reaction 25
TEP , The ENgineering Projects , Reaction 60
Hi friend, excellent tutorial, my question is how do you send serial, for instance in Arduino is something like: " Serial.println(measure_value);" then if I have three sensors, the thing will be something like this: " Serial.println(measure_value); Serial.println(measure_value1); Serial.println(measure_value2);" Regards. Thanks in advance.
TEP , The Engineering Projects , Comment
TEP , The ENgineering Projects , Reaction 40
TEP , The ENgineering Projects , Reaction 700
TEP , The ENgineering Projects , Reaction 60
TEP , The ENgineering Projects , Reaction 25
TEP , The ENgineering Projects , Reaction 60
Hi, No, I have explained this thing, sensor values are separated by commas so the values will be something like that: Sensor1,sensor2,sensor3 And it will repeat on and on. Thanks.
TEP , The Engineering Projects , Comment
TEP , The ENgineering Projects , Reaction 40
TEP , The ENgineering Projects , Reaction 700
TEP , The ENgineering Projects , Reaction 60
TEP , The ENgineering Projects , Reaction 25
TEP , The ENgineering Projects , Reaction 60
Sir, can u please upload this VI file to be compatible with labview version 2013? I tried to build the VI file as shown in the image, however, I was unable to retrieve data. The only difference is that the data I am receiving serially is from only 1 sensor. But that shouldn't disturb the output? Please guide? And upload the .Vi file compatible with LabVIEW version 2013, so that i can rectify my mistake.
TEP , The Engineering Projects , Comment
TEP , The ENgineering Projects , Reaction 40
TEP , The ENgineering Projects , Reaction 700
TEP , The ENgineering Projects , Reaction 60
TEP , The ENgineering Projects , Reaction 25
TEP , The ENgineering Projects , Reaction 60
Hi, You close and open Serial communication in every iteration, no matter if you write or read. Each of these operations takes time. Why don't you start the serial com. at the beginning and close it to the end. Only once. In attachment I've prepared a draft of how it should be easier for you to do it. Paul
TEP , The Engineering Projects , Comment
TEP , The ENgineering Projects , Reaction 40
TEP , The ENgineering Projects , Reaction 700
TEP , The ENgineering Projects , Reaction 60
TEP , The ENgineering Projects , Reaction 25
TEP , The ENgineering Projects , Reaction 60
Hi, Thank you for this vi. Its half way through to what I need to do. I also need to be able to write data to the serial port. can you help me incorporate that in this code for yours. Thank You
TEP , The Engineering Projects , Comment
TEP , The ENgineering Projects , Reaction 40
TEP , The ENgineering Projects , Reaction 700
TEP , The ENgineering Projects , Reaction 60
TEP , The ENgineering Projects , Reaction 25
TEP , The ENgineering Projects , Reaction 60
Hello Syed. I have a similar teensy program that loops in every 1000micoroseconds to send data to the serial port and i have used your code and i am unable to get a smooth sinusoidal wave ,while my input to the analog pin is sine wave of 1Hz frequency. Can you post the teensy code or tell me what is your sampling rate for ADC in teensy. Thanks .
TEP , The Engineering Projects , Comment
TEP , The ENgineering Projects , Reaction 40
TEP , The ENgineering Projects , Reaction 700
TEP , The ENgineering Projects , Reaction 60
TEP , The ENgineering Projects , Reaction 25
TEP , The ENgineering Projects , Reaction 60
Salaam... I am working on a project that catches arduino 3 sensors data via serial input. I dont know how to separate it in labview. please give me any vi so that I may learn from it. Thanks. My email is nabeel001001[at]yahoo.
TEP , The Engineering Projects , Comment
TEP , The ENgineering Projects , Reaction 40
TEP , The ENgineering Projects , Reaction 700
TEP , The ENgineering Projects , Reaction 60
TEP , The ENgineering Projects , Reaction 25
TEP , The ENgineering Projects , Reaction 60
Hello everyone I want to connect a temperature controller Delta series having RS 485 communication, I am also having RS485 to USB converter. I just want to monitor and record the process value temperature from the controller in PC through LabVIEW . As I am beginner I dnt know how can I do it..any kind of help will be deeply appreciated.
TEP , The Engineering Projects , Comment
TEP , The ENgineering Projects , Reaction 40
TEP , The ENgineering Projects , Reaction 700
TEP , The ENgineering Projects , Reaction 60
TEP , The ENgineering Projects , Reaction 25
TEP , The ENgineering Projects , Reaction 60
Hi, I have project that I need to control my mini-spectrometer (c12880ma) with arduino and get data (in waveform) with Labview interface. However, up to now, I couldn`t achieve to get data in waveform. I tried to modified some examples in the Labview, but does not work. Can you help me on this ?
TEP , The Engineering Projects , Comment
TEP , The ENgineering Projects , Reaction 40
TEP , The ENgineering Projects , Reaction 700
TEP , The ENgineering Projects , Reaction 60
TEP , The ENgineering Projects , Reaction 25
TEP , The ENgineering Projects , Reaction 60
Hi Mr Nasir, I am using c12880ma mini-spectrometer to get data in graph form by using Labview. I tried some examples in the Labview but still couldn`t solve my problem. Can we discuss my case on skype when you are not busy ?
TEP , The Engineering Projects , About TEP , The Engineering Projects , About Shadow

Top PCB Design Service

PCBA
TEP , The Engineering Projects , JLCPCB
PCB
TEP , The Engineering Projects , JLCPCB
TEP , The Engineering Projects , About TEP , The Engineering Projects , About Shadow

Embedded Tools

ARDINO TEP , The Engineering Projects , JLCPCB
TEP , The Engineering Projects , About TEP , The Engineering Projects , About Shadow

Subscribe Now !!!

Learn Free Pro Tricks

TEP , The Engineering Projects , Mail Receive Quality Tutorials Straight in your Inbox by Submitting your Email ID Below
TEP , The Engineering Projects , Mail TEP , The Engineering Projects , Mail Shadow
TEP , The Engineering Projects , Mail Robot TEP , The Engineering Projects , Mail Robot Shadow TEP , The Engineering Projects , Mail Robot Shadow
TEP , The Engineering Projects , About TEP , The Engineering Projects , About Shadow

Engineering Books

TEP , The Engineering Projects , Arduino Programming Book
SALE $20
Text Book for arduino $20
TEP , The Engineering Projects , Rating Stars (5.0)
TEP , The Engineering Projects , Arduino Programming Book
SALE $20
Text Book for Raspberry Pi $20
TEP , The Engineering Projects , Rating Stars (3.0)
TEP , The Engineering Projects , Arduino Programming Book
SALE $20
Text Book for arduino $20
TEP , The Engineering Projects , Rating Stars (4.7)
TEP , The Engineering Projects , Arduino Programming Book
SALE $20
Text Book for Raspberry Pi $20
TEP , The Engineering Projects , Rating Stars (5.0)
TEP , The Engineering Projects , TEP Robot TEP , The Engineering Projects , TEP Robot Shadow TEP , The Engineering Projects , TEP Robot Shadow
TEP , The Engineering Projects , About TEP , The Engineering Projects , About Shadow

Categories

TEP , The Engineering Projects , Arduino
TEP , The Engineering Projects , Notification 20K
TEP , The Engineering Projects , Tick 900
TEP , The Engineering Projects , Views 900
TEP , The Engineering Projects , Comments 20K
TEP , The Engineering Projects , Arduino
TEP , The Engineering Projects , Notification 20K
TEP , The Engineering Projects , Tick 900
TEP , The Engineering Projects , Views 900
TEP , The Engineering Projects , Comments 20K
TEP , The Engineering Projects , Arduino
TEP , The Engineering Projects , Notification 20K
TEP , The Engineering Projects , Tick 900
TEP , The Engineering Projects , Views 900
TEP , The Engineering Projects , Comments 20K
TEP , The Engineering Projects , Arduino
TEP , The Engineering Projects , Notification 20K
TEP , The Engineering Projects , Tick 900
TEP , The Engineering Projects , Views 900
TEP , The Engineering Projects , Comments 20K
TEP , The Engineering Projects , Arduino
TEP , The Engineering Projects , Notification 20K
TEP , The Engineering Projects , Tick 900
TEP , The Engineering Projects , Views 900
TEP , The Engineering Projects , Comments 20K