LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

copy braches of tree control - example

I am looking for an example of copying items in the branches of a tree control. It has been more difficult coding than I thought (fairly new to labview). I would think the same method could be used for saving and building the tree from a file. Does anyone know of an example VI for this?
0 Kudos
Message 1 of 4
(3,518 Views)
Hey pkelley!

You are correct that this does require a bit of code.  I have attached a VI that my colleague AESulzer wrote that iterates through a tree control and copies the entire structure.  You could modify this example pretty easily to just copy a single branch instead of an entire tree.  Take a look at this and let me know if you have any questions. 

Andy F.
-----------------------------------------------------------------
National Instruments
0 Kudos
Message 2 of 4
(3,503 Views)
Actually, I have already written that side of it. A string is returned transversing the tree with the tag, cell string, a child?, a next? All children are followed first then the next item and it's children until entire desired section is transversed. It requires a bit more logic rebuilding.

I'll get it but I thought surely this subject would have been visited before.
0 Kudos
Message 3 of 4
(3,499 Views)
pkelley,

I searched around and was not able to find anything that accomplishes the same goal that wasn't the above VI.  Once you do finish the task, you might consider posting it here so that others will have access to it as well.  Let me know if you have some specific questions.

Thanks!
Andy F.
-----------------------------------------------------------------
National Instruments
0 Kudos
Message 4 of 4
(3,486 Views)