Populating the Tree Control with items takes very long time. I suggest improving the performance of a tree control. Many other applications have tree controls that are populated in a small amount of time, so it should be possible with LabVIEW.
I know of three ways to populate a tree control. The first is to individually add items using the Add Item invoke method. This method takes a very long time. Adding 15,000 entries took over 180 seconds.
The second way is to use the"Add Multiple Items to End" invoke method. This took over 20 seconds for 15,000 entries.
The third way is to programatically respond to the user expanding an item in the tree and populating only as necessary. I assume that this is fast, but it seems like a lot of work to do every time a tree control is used that could have a lot of items. Maybe LabVIEW could improve performance by using the third approach internally for the programmer.
Currently I am hesitant to use a tree control because of performance. LabVIEW is a great product, and making the tree control perform better would improve LabVIEW even more.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.