12-22-2011 10:16 AM
Hi everyone,
I would like to plot on a labview graph the resultats of some measures I have made. I have saved the 2 columns (date/Time and measure) in the attached VI. I am not to sure how to make up or to feed the plot so that I get the correct "date time" in absciss. Although there is exactly 1 minute between each row, I would like the plot to really associate each measure to the exact date/time (so that if I some data is missing I will see it on the plot).
Would anybody know if this is possible ?
Thansk a lot,
User
12-22-2011 11:01 AM
Use the Scan from String function with the appropriate format codes to convert the date/time string to an actual timestamp. From there you can build your arrays into clusters to wire into the XY graph. The XY graph example in LabVIEW help will show the various ways of combining the data.
12-27-2011 02:55 AM
Hi
First, thank you for using the NI discussion forum.
Ravens Fan is totally right, you just have to 1. convert your string table into an appropriate format, 2. put the data and time vectors into a cluster, 3. connect the cluster to a XY graph.
However your time table is unusually formatted: a format like “17:03:28,589 31/12/2004” would allow LabVIEW to automatically recognize a time string. Moreover, your time table contains values, which have been put to ‘-255’ (although data and time vector have the same length). So you must replace them by NaN.
An example of building the graph is attached to this post.
I hope this will help, don’t hesitate to ask more questions.
Best regards,
Audrey_P
National Instruments France
12-27-2011 07:24 AM
I agree with Ravens fan and Audy.
Here i have interpretted in other way.... I think this vi will help u