LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I use existing timestamp data for the X-axis in a graph?

I want to display in a graph, datapoints that already have timestamps associated with them. The file I'm reading the data from is a CSV text file. Is there a way to display these existing timestamps on the X-axis?
0 Kudos
Message 1 of 3
(2,882 Views)
Use an XY-graph...

Not much more to say.

You read the Xs into an array and the Ys into another array, bundle the two arrays and wire it into an XY graph. (Or you can bundle X and Y and build an array of those clusters).

Set the X axis to display time, and that's it.
0 Kudos
Message 2 of 3
(2,882 Views)
Well, I was too fast this time - the problem you are having is, I guess, to get the time stamps from text to a numeric value that the graph will accept. The way to do this is to use the scan from string function to extract the day, month, year, hour etc...then bundle the data and send it to the date/time to seconds function. From that you get the X values that you can feed into the XY graph.
0 Kudos
Message 3 of 3
(2,882 Views)