取消
显示结果 
搜索替代 
您的意思是: 

graph or chart with time date

已解决!
转到解答

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.

 

 

 

 

0 项奖励
1 条消息(共 16 条)
5,048 次查看

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.

0 项奖励
2 条消息(共 16 条)
5,042 次查看

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.

 

 

0 项奖励
3 条消息(共 16 条)
5,034 次查看
Sorry, I didn't notice that you also wanted the date. You've have to enable absolute time I believe. The easiest way may be to create a waveform data type with the build Waveform function and wire the waveform to the chart.
0 项奖励
4 条消息(共 16 条)
5,018 次查看

"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.

0 项奖励
5 条消息(共 16 条)
5,011 次查看
解答
已被主题作者 johnnyt 接受

Sure it can do it. You need to build the correct data type for the chart, of course.

 

Try this.

6 条消息(共 16 条)
5,003 次查看
Thanks, Dennis, that did the trick!
0 项奖励
7 条消息(共 16 条)
4,990 次查看

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.

 

0 项奖励
8 条消息(共 16 条)
4,515 次查看

attached is a LV version 8.0

0 项奖励
9 条消息(共 16 条)
4,513 次查看
Yes, using the build array will cause memory problems if used for a long enough time. It's not at all a memory leak. You would need to implement a buffer to keep the arrays from growing past a certain size. There is an example called XY Chart.
0 项奖励
10 条消息(共 16 条)
4,512 次查看