LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save Labview tree Control to file and Load from file

I want to save all of the information from my Labview (8.2) tree control to a file and be able to read it back from a file and re-populate the tree control.  I am using different symbols as well as multiple columns and level of children in my control.  Does anyone have any suggestions on how to do this?
 
Thanks
Steve M.
 
0 Kudos
Message 1 of 2
(4,119 Views)
Hi Steve,

I found a DF that talks about saving the tree to a spreadsheet file and have included it in this message.  To get items from the tree control, you have to use open up the tree and remove all of the items off of that tree, while still preserving the heirarchy of the tree.  The indent level property node will preserve the heirarchy of the tree and from there you can get the item tag and cell string. 

To transfer the file to a tree, you will then need to read the file and insert items into the tree corresponding to the heirarchy.  I have also found a tutorial on how to traverse tree controls.

I hope this helps.


Regards,

Nadim
Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(4,096 Views)