Efficiently Adding Items to Tree Controls

Updated Aug 6, 2018

Reported In

Software

  • LabVIEW Full
  • LabVIEW Base
  • LabVIEW Professional

Issue Details

How do I add a large number of items to a tree control quickly?

Solution

  • Enabling Defer Panel Updates greatly increases the speed of adding items to tree controls. Defer Panel Updates increases speed because it defers updating the front panel for changes in values of controls and indicators.
 
  • Another useful method introduced in LabVIEW 8.0 is Add Multiple Items to End, which allows the addition of multiple items at once. By bundling all the items together and writing once, Add Multiple Items to End saves time.
 

Additional Information

Prior to LabVIEW 8.0, items were only able to be added individually.

WAS THIS ARTICLE HELPFUL?

Not Helpful