LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

x y graph

I am looking to plot a x y graph using the relative time function property. I want to show the actual time on the x-axis and the temp on the y axis. I am coming into a cluster to go directly in the graph. I have two arrays the first is the time and the second is the temp. My problem is showing the relative time (actual time) when it goes past 12 midnight. 23:59. My graph is writing over the previous values ie at 00:01 if the test stated at 00:01AM. How can I get around this problem. I have attached a sample of the code.

Thanks
Mark
0 Kudos
Message 1 of 4
(2,783 Views)
I think there are 2 issues with the graph.

1. Your example doesn't graph anything because you are giving it no data 🙂

2. You are not including the day, so if you look at your math on the time, you are giving the graph the exact same values each day as it rolls over. You may be able to incorporate a day addition into the math and get it to work.

However take a look at my example. I used absolute time, but just hid the day and years etc. When you configure the grpah properties, select advnaced settings and use this time string %<%H:%M>T

Just run the example and then change the time in the timestamp to the next day and you can see how it behaves.
Message 2 of 4
(2,768 Views)
Hi Evan

Thanks for your reply

1. I took the y-axis out to simplify the problem so that is why there is no data in it.

2. I am looking to open your question1.vi that you sent but I do not have 7.1 loaded. Can you send it in a 7.0 version.

Thanks for your help.
0 Kudos
Message 3 of 4
(2,760 Views)
Here is the 7.0 VI
0 Kudos
Message 4 of 4
(2,756 Views)