12-03-2013 05:56 PM
Hi all,
Please see the attached VI. I'm trying to change the colour of some pipe pragmatically.
What I want to happen:
When defer panel updates is TRUE and I change the colour of the pipes, the pipes should only change colour once defer panel updates is set FALSE.
What is actually happening:
When defer panel updates is TRUE and I change the colour of the pipes, the pipes are NOT changing colour once defer panel updates is set FALSE.
LabVIEW help says: If FALSE, LabVIEW immediately redraws the changed elements of the front panel.
So I'm changing the colour of the pipe when defer is TRUE and its not redrawing the changes like it says it should when defer is set FALSE? Any Ideas?
Thanks
12-04-2013 01:29 AM
I would say this is something that has to do specifically with the pipe (which is my understanding is was added to LV to support the DSC module, so it probably didn't get as much attention as the standard controls). If you use another control (like a boolean or a color box), it does update correctly. Also, if you update the VALUE of the pipes in the undefer case, the colors do update when you undefer.
I would consider using another control to represent the pipe (the color box is probably your best bet, as the value is the color).
12-04-2013 01:51 AM
It sounds about right. Defer updates pauses all updates until it's set False. However, setting it will also cause a redraw before taking effect.
/Y