09-16-2013 05:22 PM
Hello all,
I have a 1D array of 6 Doubles that gets updated every 10 seconds or so and gets plotted on a graph. Although they plot correctly, they temperatures are connected vertically and not horizontally as they should (see picture)
Thank you,
Richard
09-16-2013 05:28 PM
@rcote1 wrote:
Hello all,
I have a 1D array of 6 Doubles that gets updated every 10 seconds or so and gets plotted on a graph. Although they plot correctly, they temperatures are connected vertically and not horizontally as they should (see picture)
Thank you,
Richard
They say a picture is worth a thousand words, but a VI is worth a thousand pictures. 🙂
09-16-2013 05:50 PM - edited 09-16-2013 05:52 PM
dt=0 is not a valid input. Is this a graph or a chart?
Please attach the actual VI. Thanks.
09-17-2013 06:53 AM
Sorry about that, I was posting from home and the VI is not accessible remotely. You might want to look at my other posting on relative time.
Thanks,
Richard
09-17-2013 10:16 AM
Please sanitize any attached VIs by removing all these toolkit VIs that we don't have. Also remove the reports parts and reduce it to only the graph and some data.
You are only graphing six points, so the vertical lines in the original picture are not possible unless you were using a chart earlier. Now you are apparently using a graph.
What's the point of the outer case structure and breakpoint you have set? What is the purpose of the disfunctional abort VI primitive?
Please run your VI until you see the vertical lines you were complaining about. Now right-click the graph and select "data operations...make current values default". Delete everything else except the graph and paste it onto a new VI. Save under a new name and attach it here. Thanks.
09-18-2013 11:57 AM
Sorry about that, attached is my VI that I copied the way you asked me to copy it.
Thanks,
Richard
09-18-2013 01:18 PM
Your code makes no sense. You are graphing the same 4 values (autoscale X to see) on the white plot (#0), then repeating the same over and over with the same timestamp. What do you expect to see?
You also did not make the value in the graph the default before saving, so we cannot see the vertical lines you seem to be seeing.