> I have a LabVIEW 6.0.2 application where I'm using 14 different
> property nodes in the main loop. All of these have to do with GUI -
> hiding buttons when "X" isn't pressed, disabling and greying out
> controls if <0, popping one button on top of another depending on the
> mode of operation, etc, etc. While this works fine, the program is
> getting slow. I've noticed that using the old 2-D buttons works faster
> - things update faster and redraw quicker. However, more to the point,
> I once read that if you have to use a lot of Property Nodes like this,
> that you should bundle them into a sub-vi, thus replacing what would
> be Property Nodes with references. How does that make it faster?
My assumption is that your slowdown is coming from screen update
s. When
you change a property, it needs to update the screen, and this always
takes longer than people expect. And yes, the 3D controls can take
longer to draw than the 2D, especially if they have a blended edge or
shadow.
The other poster's suggestion to set the property only when changed will
help, but that is a very small cost compared to the cost of drawing.
Where you have a collection of properties showing, hiding, or moving
objects, surround these updates with a Panel>>Defere Updates property
set then clear. This will help a bit as the drawing will be more amortized.
As for the subVI question, it cleans up your diagram, and makes the
defer panel updates easier. It will shrink the size of the top level
VI, and can allow for reuse, but I wouldn't expect it to speed things up
simply by shoving the code into a subVI.
Greg McKaskle