LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph Active Plot error

So this is a weird error to explain, but it's causing me all sorts of grief.

I created a small VI to demonstrate the problem. (attached)

BTW, I'm using LV 8.0.

Okay, to use the attached VI:

Make sure Defer? is off, and select several different graphs of different number of shapes. Notice that it goes through and draws each line transparent and whatnot.

When you turn Defer? on, it turns on difer panels when it does the drawing. This is where the weirdness starts...

When you select a cluster of shapes to draw, it remembers the number of shapes from the previous time it drew, and it will color correctly until it reaches the number of plots it had the previous time, then it'll error (just click continue). So then the next time when you click a cluster to draw, it'll draw them all with no error if the number of shapes is fewer than the previous number of shapes (I hope this is making sense).

This only seems to happen when defer panels is active.

What's up? Is this just a bug?

Is there a better way of doing this? It takes a long time when I need to draw several thousand shapes.

Thanks!

I hope I remembered all the important information...

0 Kudos
Message 1 of 5
(2,809 Views)
This error also comes up if you set the plot visibility to false and recolor the lines, then set it back to true. Weird.
0 Kudos
Message 2 of 5
(2,793 Views)
Hi,

I was trying to open up your example program, but unfortunately, I am missing your custom color control.  Can you provide that with your next post please.

Regards,

Nadim
Applications Engineering
National Instruments
0 Kudos
Message 3 of 5
(2,778 Views)
Sorry! The color array isn't all that necessary. I disconnected it from the typedef, and am reattaching the VI


0 Kudos
Message 4 of 5
(2,777 Views)
Hi wpolk,
By looking at your program, my impression is that before you draw something new, the ActPlot expect to see the number of active plots on the XY graph is the number of plots that was on the screen before the new plots were drawn.  That's why when you pass the loop iteration value to the ActPlot, when the value goes pass the number of plots that's currently on the screen, ActPlot errors out.
It's somewhat convoluted what you are trying to do, since if you don't set the defer value, it behaves normally.  If you could be more specific about what you are trying to do, maybe we can find a better architecture for your program.

Yi Y.
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 5 of 5
(2,756 Views)