LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make x-axis continue "forever"

Solved!
Go to solution

Hello, I have the following labview VI (look at the file).

I am acquiring data from a data-acquisition board, and receiving the data in a chart in labview. However, when I run the program and receive the data in the chart, the x-axis only gives me data in the range of 0ms - 1s. How do I extend my range, so that I can practically keep receiving data for a very long time, instead of just 1 second?

 

If the program doesn't work for you I have also attached a picture.

 
 
Download All
0 Kudos
Message 1 of 4
(2,354 Views)

You have a graph, not a chart. Big difference! Maybe you want a chart which keeps the last N data points, scrolling forever as new data arrives, discarding the oldest..

 

In any case, "forever" will not fit, because you'll run out of memory.

Message 2 of 4
(2,333 Views)

Alright that helped a little, but now I've run into another problem (see picture).

Now the time on the x-axis is really weird. How do I make it so the graph starts at 0 and then continue on from there, and not start at 3661317.... as it does on the picture.

0 Kudos
Message 3 of 4
(2,326 Views)
Solution
Accepted by BirgerBrosa

Hi Brosa,

 

several things to change:

  • change formatting of the X axis to display timestamps
  • when using a chart you may also change x scale multiplier/offset
  • use waveforms (not DDT wires!) to handle timestamps easily
  • get rid of ExpressVIs when you want to get into less problems
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 4
(2,288 Views)