09-17-2008 02:34 PM
09-17-2008 03:21 PM
Have you tried simply wiring your pressure reading directly to a waveform chart? It's like a stripchart, and it already has time information. If you wish to use your own timestamps then you can use a waveform graph or an XY graph. For the waveform graph you need to create a waveform data type which involves setting the start time and your dt, and feeding your arrays of pressure readings for the Y. For the XY graph you just need to create separate X and Y arrays. You can use the Express XY Chart if you wish as a starting point.
Have you looked at the graph examples that ship with LabVIEW. There are several examples that show you how to create all sorts of graphs.
09-17-2008 04:06 PM
I agree with smercurio.
You do not need an XY graph.
Instead, use a waveform chart, and it will automatically use time for the x-axis.
You are correct in turning the pressure string to a double, then all you have to do is wire that double to a waveform chart.
Put this procedure in a loop, and it will use the timing of the loop as the time for the x-axis.
(Note if the loop runs more frequently than 1 second, you must change the scaling of your x-axis accordingly)