LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

display real time in x axis from zero in waveform chart

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.

0 Kudos
Message 1 of 6
(16,650 Views)

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(16,645 Views)

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

Message 3 of 6
(16,641 Views)

Hi Harika,

 

as I wrote before: use a waveform!

check.png

 

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 6
(16,635 Views)

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

0 Kudos
Message 5 of 6
(16,622 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(16,610 Views)