12-13-2011 01:48 PM
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
12-13-2011 03:06 PM
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.