LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Building a Tree

I am trying to build a tree with 4000 nodes. I am in trouble because the time spent to build it is too much. I am using activeX commands to build the tree.

There is a input file with all the elements. The file format is in the way bellow:

root
root\node1
root\node 2
root\node 2\element 1
root\node 3
...

I read the file, pass all data to an array, and then, I use the generate tree.vi. This LLB file that contains this VI  is attached.

I read something about to disable Defer Panel Update, but I don't know how I can set it.

Thank you in advance.


0 Kudos
Message 1 of 5
(6,617 Views)
Unfortunately, deferring front panel updates probably won't help you here, since this is an ActiveX control. LabVIEW doesn't have any control that I know of as to when an ActiveX control updates itself.

Is there a reason you're not using a LabVIEW tree control? It has options such as adding multiple items at once and the ability to defer front panel updates. Both of those would help solve your performance problem.
Jarrod S.
National Instruments
0 Kudos
Message 2 of 5
(6,614 Views)
Is it possible using this native control to read an array of my tree elements, like it did with the activex control?

Is it faster than activex?

Thank you.

Message Edited by gborges on 10-09-2006 01:40 PM

0 Kudos
Message 3 of 5
(6,609 Views)
Is it possible using this native control to read an array of my tree elements, like it did with the activex control?

Is it faster than activex?

Thank you.
0 Kudos
Message 4 of 5
(6,608 Views)
I'm not sure I understand your question. Are you asking if you can select multiple items in the tree control at once and get all their values as an array? The answer to that question is yes.

You can search the Example Finder in LabVIEW (Help >> Find Examples) for the term "tree" for a number of Tree Control examples that should help you get started.

I can't say if the LabVIEW tree control is faster than this ActiveX tree control, since I really have no idea what the underlying code is. The LabVIEW tree control has the advantage that it can add multiple items at once to the tree control, and that you can defer front panel updates while adding items.
Jarrod S.
National Instruments
0 Kudos
Message 5 of 5
(6,602 Views)