LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

n-ary tree

Hi,

 

I'm working on labview 2010, and I'd like to use a n-ary tree in one of my program. I know the existence of the TreeControl, but it can only handle text array, which is a bit limited. Furthermore, the purpose of TreeControl is more likely to be shown on the front panel, whereas I only want to use trees in a programmatic way. Finally, they are not really easy nor intuitive to handle.

 

So I'm looking for a more "elegant" way to build a n-ary tree, each node holding a predefined cluster. I've started thinking about using classes, but as I've never worked with them previously, I'd like to know if it is a viable option...

 

Thank you in advance 🙂

 

Baptiste

0 Kudos
Message 1 of 2
(2,335 Views)

It's certainly possible to build a tree using LVOOP and there should already be some examples online. I suggest you look through the OO forum on LAVA, as there should be some examples of data structures there. Also, check out the Lapdog group in the communities section here, as I believe there was also supposed to be a tree implementation there.

 

Specifically, for the implementation you might want to use DVRs, as they allow you to point to the parent/child object.


___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,321 Views)