07-27-2011 04:45 PM - edited 07-27-2011 04:47 PM
I am puzzled about this. Check out the two almost identical VIs attached. Run the first one and try to change the Plot Color. The color property changes based on the color value. Do the same with the second VI (PlotColorWrong.vi). Try to change the color of the plot - it does not change!
Am I doing something wrong or is this a LV bug?
LV2009, SP1, Windows XP.
Solved! Go to Solution.
07-27-2011 04:51 PM - edited 07-27-2011 05:18 PM
Something seems corrupt. Resize the plot legend to show two plots, the resize it again to show one plot. Now it works.
(I would also recommend to set the active plot to zero first, to make sure the color is read from the correct plot. If you read the active plot in the bad VI, you'll notice that the active plot is 1 instead of zero)
07-27-2011 05:00 PM
I do not get it. It's only one plot on each graph. I've resized the plot legend anyway but it does not seem to work.
To clariify, I want to see the value of the Plot.Plot Color indicator changed when I change the color of the graph on the second VI.
07-27-2011 05:09 PM
As I said, your property node is looking at the second plot for some reason. Set the active plot to zero and things will fall into place.
07-28-2011 03:08 PM
What if I have several plots on the screen? How do I get their plot color?
Thanks!
07-28-2011 03:51 PM - edited 07-28-2011 03:51 PM
07-28-2011 04:31 PM
Excellent - thanks a lot for your help!