Jump to content

Tree Data Structure framework


Recommended Posts

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.

post-16254-126099515793_thumb.jpg

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

Link to comment

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).

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.