LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do i plot with the operating system time in one plot and show lines between cursors in another using the same XY graph?

I am having some trouble graphing two plots at once. One plot is to show the current temperature inside a chamber as a function of time. I am trying to pick the current time and temperature each second and plot it with each point being connected by a line. I am able to show a moving, blinking dot each second but I can't figure out how to develop an actual line with these dots. To make matters worse, the blinking dot is back in the year 1903. I understand that it uses seconds elapsed since 1903, and am trying to find out how to graph the current temperature with the system time.

The second plot is just 5 moveable cursors that are to be connected by a line. I am able to move the cursors and retrieve the position information, but I can't make a line between them.

I have attached my main .vi, though you may have to pick the graphing part off to have it work for you.
0 Kudos
Message 1 of 4
(2,547 Views)
You're not creating the XY graph data correctly. I've attached an example with a couple of simple XY Graphs. One is using a couple of shift registers to hold the spearate x and y arrays. I think this is what you were trying to do. The other one uses a VI from the shipping examples called XY Chart. It makes an XY Grpah act like a chart. I've also shown the correct way to display current time.

Message Edited by Dennis Knutson on 05-12-2005 03:51 PM

0 Kudos
Message 2 of 4
(2,533 Views)
Dennis,

Thank you for your example. I was unable to run the top graph becuase I do not have the XY Chart Buffer sub vi. Could you post this for me as well?

Much thanks for your help thus far!
0 Kudos
Message 3 of 4
(2,521 Views)
Yes, you have it. As I said, it's part of a shipping example called XY Chart. Open the example finder or go to \examples\gneral\graphs\charts.llb.
0 Kudos
Message 4 of 4
(2,515 Views)