I just can't seem to figure out how to graph current time and date on the x axis. I'll be getting data from a serial port and parsing out to an array for logging. Attached you will see a simple example in Labview 8. I tried the property nodes but could not get the year past 1904. Any help would be appreciated. Thanks Much.
已解决! 转到解答。
It would have been nice if you had attached the code with the property nodes to see what you were doing wrong.
There's a very old example that explains what you should be doing. Look up Real-Time Chart.
Hi Dennis,
Attached is how I was doing the property node. Notice time is correct, but I just can't get the date and year. Thanks.
"build Waveform function "
I tried that too, it only works with a single plot, not four, as in my example. I have a feeling that Labview simply can't do what I want it to do: plot four sets of data on one chart with real date and time. I've been working on this for almost two days now and I see no solution in site.
Sure it can do it. You need to build the correct data type for the chart, of course.
Try this.
Hello Again,
I realize this is an old thread, but just recently I found that the technique we settled on to display time/date is causing a memory leak in my Labview application. It just reared it's ugly head recently, and it takes weeks to show up. I discovered with the help of Labview's VI analyzer that the build arrays were the culprit. If I take them out of our example, then I will not be able to build the waveform. So I am now, still looking for a solution to the original problem of getting the DATE into my graph.
To see the memory leak manifest itself, change the time of the loop to 1 millisecond or look at my attached examples.