07-08-2016 11:24 AM
Hi, I am trying to develop a program in labview in which I need to get real time data on the graph. I am using wave form chart but I am facing problem with x-axis. In x axis I need time at which the data point is aquired in seconds but when i run the program I not getting the required time.Please help me in resolving this.
07-08-2016 11:32 AM
Hi harika,
I need to get real time data on the graph. I am using wave form chart
Why do you use a chart when you want to use a graph?
Charts and graphs are two different things in LabVIEW!
In x axis I need time at which the data point is aquired in seconds but when i run the program I not getting the required time.
- Change the formatting of the x axis to show time instead of plain numbers.
- Use waveforms for plotting and enable the usage of the timestamp inside of the waveforms…
LabVIEW comes with a lot of example VIs. There are also examples explaining how to use charts and graphs. Did you examine them?
07-08-2016 11:51 AM
Hi,
I need to display all the data points while the program is running due to this i am using waveform chart. I tried to change the x axis format to relative time then also I could not get the desired result. I looked through several posts but i could not find the proper solution.
I have attached the sample program
07-08-2016 11:56 AM - edited 07-08-2016 11:57 AM
Hi Harika,
as I wrote before: use a waveform!
I need to display all the data points while the program is running due to this i am using waveform chart.
While a chart eases to display more samples you still could use graphs too…
07-08-2016 12:52 PM
Hii,
I am getting the data in hr:min formate. Is there any way that my x axis starts at zero sec when i run the program and x axis should display time in seconds only.
Thank you
07-08-2016 02:01 PM
Hi harika,
I am getting the data in hr:min formate.
You can always change the formatting in the properties. It's just a right-mouse click away…
Is there any way
Yes, sure! 😄
that my x axis starts at zero sec when i run the program
So you want to plot over time difference between time at start and current time? Then you need to calculate this difference…
and x axis should display time in seconds only.
Again: set the axis formatting as needed!
General notes:
- Charts are mainly used for evenly spaced samples (you can use the waveform datatype as shown above to get around this limitation).
- You can set the scaling/offset for the X axis to adapt for the delay between samples…
- When your sampling doesn't use a fixed dt you should use a XY graph instead…
Please provide as much details as possible!