11-14-2013 01:29 PM - edited 11-14-2013 01:30 PM
Hello All,
I have been writting a program that allows me to graph theoretical data and change it in real time to see how it changes the plots. Currently, I have all of the equations in a FOR loops and have the X-Y arrays from each iteration being clusterted together and auto-indexed at the edge. If I then feed that into the XY graph it works perfectly and I can plot multiple lines iteratively. (See FirstPlot.vi)
So the problem I'm having is when I want to have the option of plotting three different lines during each execution of the FOR loop. Becuase the final line is the addition of two other equations, it would be nice to see what the other two equations look like on top of the final line. So if you look at the first VI, it plots the same line over and over but changes depending on the value of 'i'. In the second VI (SecondPlot.vi), if you look closely it will plot all the components of the line including the original line but only for the last value of 'i'. I want to be able to plot the line and its components on the same graph for each value of 'i'. Any suggestions?
Solved! Go to Solution.
11-14-2013 02:07 PM
Build your final array outside the loop. Example attached.
11-14-2013 02:21 PM
kkersch,
Thanks for the quick reply. As it turns out, I'm lucky that you sent me the VI in LabVIEW 2013 format because what you gave me worked perfectly. However when I try to do it in 2010 (what I have on my laptop) it stops working. So it seems its very easy to do with 2013 but impossible with 2010.
11-14-2013 02:31 PM
I actually never used 2010. We stopped upgrading at 8.6 due to budget constraints then I changed jobs and finally upgraded to 2012. I've heard 2010 had a lot of problems.
11-14-2013 02:34 PM - edited 11-14-2013 02:35 PM
Found ONE!
Also I tried converting it to a lower version and it actually worked in 2010 however when I changed one of the indexed tunnels to a regular and then back again, it failed. Thanks again for the help!