LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple plots on XY Graph (Iteratively)

Solved!
Go to solution

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?

Download All
0 Kudos
Message 1 of 5
(3,680 Views)

Build your final array outside the loop.  Example attached.

 

Kelly Bersch
Certified LabVIEW Developer
Kudos are always welcome
Message 2 of 5
(3,666 Views)

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.

0 Kudos
Message 3 of 5
(3,663 Views)
Solution
Accepted by topic author DrNO23

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.

 

Kelly Bersch
Certified LabVIEW Developer
Kudos are always welcome
Message 4 of 5
(3,656 Views)

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!

0 Kudos
Message 5 of 5
(3,652 Views)