To download NI software, including the products shown below, visit ni.com/downloads.
Overview:
This VI shows how to programmatically populate a tree control using the Edit Tree Items.Add Item invoke node.
Description:
It will create a parent item, a child to that parent and a grandchild to the parent. This example also shows the difference between the "Left Cell String", "Child Text" and "Child Tag" inputs of this invoke node.
Requirements:
LabVIEW 2012 (or compatible)
Steps to Implement or Execute Code:
Additional Information or References:
Front Panel:
Block Diagram:
Notes:
By calling the Edit Tree Items.Delete Invoke node with the Tag input unwired, LabVIEW will delete all items in the tree control.
If you do not wire the "Parent Tag" input or wire to it an empty string constant, this will create a top level item. This is what is done in the first "Edit Tree Items.Add Item" invoke node.
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Could You include an image of your front panel so we can see what the tree control looks like?
Consider it done...
you should check out this tree toolkit on LAVA...
Thanks that was helpful