LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get X axes values by indexing

Hi
I would like to know why in the folowing example I have my X axe graph's values are the  loop  iteration index(1st column)  instead of  the values of the 2nd column(time)
I want my graph with Y value according to time(2nd column values)
I thougt I was supposed to do it like that but it's not working as I want
could somebody explain me why?

I join my VI and the txt file

thank you
Olivier
Download All
0 Kudos
Message 1 of 3
(2,223 Views)
Hello Olivier,
you are using waveform data in your VI. Waveform data requires that you have sampled your data at a constant rate and wire this information to dt.  Your x.txt contains distinct time values when acquisitions were done and the dt is not a constant. So your data is a good candidate for an XY Graph. This one supports an array of (x,y) coordinates. You can also wire more than one graph to an XY Graph.
Best regards, Guenter
0 Kudos
Message 2 of 3
(2,212 Views)
Hello gueter
Thanks very much for your speedy reply ---your  answer is the fastest I have ever received. perhaps because I usually use french community forum.and thank you so much your answer is also exactly what I needed to know.

Olivier
0 Kudos
Message 3 of 3
(2,209 Views)