Hi
Here is a solution, which reads the items of a tree and writes them into an array in the order they are visible in the tree (top - down).
You have the main vi (Tree.vi) where a tree-control and an array-indicator are the only elements. On the diagram the vi GetChildren.vi is called. Be aware that this vi is in reentrant mode and can not be debugged. It reads the children of a parent node in a recursive way.
Hope it helps.
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------