12-14-2009 03:05 PM
Solved! Go to Solution.
12-14-2009 03:21 PM
I hope someone can give you a better answer. I don't have LV 2009 so I can't look at your code.
Tree controls are not very intuitive. I had some difficulty with them. Then I discovered the Tree Controls API at LAVA. Give these a look. I found them to be quite helpful.
12-14-2009 03:49 PM
If you creat an element in a tree (with Add item), a tag is returned. Use this tag to create children, you can input it on the 'Add Item'.
Ton
12-14-2009 05:36 PM
Try the attached vi, I think it's what you were trying to accomplish. The problem you were having was becuase you were adding items that already existed in the tree, so labview forces their item tags to <Item>_1, <Item>_2, etc. In the attached vi you'll see I check if the current item already exists, if it does, I don't add it. I also build the child tags as <col1>_<col2>_<col3>_... for each row so that I can check if the same element already exists. Hope this is what you were looking for!
-RW