LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

System time in graph

Hi,

I would like to have computer's system time in X-axis.
Can someone help me ?

Thanks,

Seb
0 Kudos
Message 1 of 5
(2,819 Views)
Hi SebN74,

here is a picture of an XY graph with computer's time in X axis.
You need to modify X axis parameters to show the time in X axis.

Hope it helps!

Best Regards,
G Liagre
Best regards,
G Liagre
0 Kudos
Message 2 of 5
(2,811 Views)
Hi,

I build the VI you did to see how it works : that's excatly what I want,

But when I apply your technique to my VI, it doesn't work. There's only 1:00:00 in X-axis, and no curve is drawn.

I receive data from serial port, I've deleted your random number and plugged my data (DBL) in its place. (See picture.

Thanks for all,

Seb.
0 Kudos
Message 3 of 5
(2,790 Views)
Hi Seb,

In fact, you forgot the use of the "shift register" which will memorize the values for the graph.
In your example, the X and Y arrays are reinitialized at each loop iteration. To avoid this, put a "shift register" on the loop.

Here is my previous pic with the "shift register" marked.
To put a "shift register" on a loop, right-click on this loop and select the "Add shift register" option.

Best Regards,
G Liagre
Best regards,
G Liagre
0 Kudos
Message 4 of 5
(2,774 Views)
THANKS VERY MUCH !!!!
That's it !!!
0 Kudos
Message 5 of 5
(2,770 Views)