09-22-2010 10:06 PM
I had constructed a tree to display data in 2- columns with parent and child nodes. But the problem I have is if i run the vi and close it, for the next time if I open the vi, the previous data is defaultly shown in the tree structure, instead of displaying a blank tree. Can someone tell me how to set the tree to be blank when ever I open it.
Thank you,
Raghu
09-23-2010 02:58 AM
Use the invoke node to delete the Item... Give True value to Delete child item...
09-23-2010 07:29 PM
Iam already using the invoke node to delete the items but its still holding the values in the memory, and when ever I open the vi, the last executed values are dispalyed in the tree. Can you please take a look at this attached vi and tell me if iam missing any thing.
09-23-2010 09:33 PM
No, you are not missing anything. That is the normal behavior for a tree control. Likewise for a ring control. You are not changing the value of the control. But you are programatically changing the properties, in this case the Items.
09-23-2010 09:37 PM
So, Ravens there is no way to display a blank tree when ever I open it? This is really important for me to display a blank tree before i run it. If there is any alternative can you please suggest me.
09-23-2010 09:44 PM
Yes. Run your VI up to the point where it deletes the items. (Use a breakpoint to stop it.) Clear the breakpoint and save it. Now the VI is saved with all the items deleted out of the tree.
Or just go with what you have now which is clearing the tree at the very beginning of your program. But your program continues on and happens to repopulate it. If you correct the spelling of the word "group" in your array, you'll see the tree does get cleared out with the misspelled words and is recreated with the correctly spelled word.