GoGators Posted December 16, 2009 Report Share Posted December 16, 2009 LAVA, I have a need for a tree data structure in LV. Rather than using a a tree control on the front panel and using its methods and properties to manipulate the tree I decided to see if I could do it using LVOOP with DVRs. In the end I have something that looks promising, but I was wondering if anyone has tackled this design pattern yet. TopLevelTest.vi is the top-level. There are custom probes for the tree and node class to see the data better. Also since that was my first UML design, if anyone wants to critique it that would be great too. Tree.zip Quote Link to comment
Aristos Queue Posted December 16, 2009 Report Share Posted December 16, 2009 but I was wondering if anyone has tackled this design pattern yet Yep. Quote Link to comment
GoGators Posted December 17, 2009 Author Report Share Posted December 17, 2009 http://lavag.org/top...classes-for-85/ Thanks for the link. I read all five pages then realized I should look up AVL tree. I should have specified it needs to be bi-directional and non-binary. I am trying to make the basis of a configuration data-structure (or any other tree with non-restricting features), and it seemed like a good starting place. The idea being if you want to represent a file-folder structure you could with it. Then you would use the tree control (or multi-column listbox) as a way to visualize the data (much like the custom probes I made). So is a AVL tree similar to the problem I am trying to solve, and I can't visualize the problem correctly, or am I doing the correct thing with my code. On another note this might be the basis of making a custom run-time NSV deployment tool (obviously being tied to a project is little restrictive). Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.