LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LV7 Tree control Modify Left Cell String

Is it possible to modify the "Left Cell String" of a tree node - I can't find the appropriate method or property to do this.
Cheers,
Wayne
0 Kudos
Message 1 of 6
(3,949 Views)
If you have the tag of the left node then this is not too hard. You set the property "Active Item Properties>>Active Item Tag" to that tag and then use the property "Active Cell Properties>>String" to set the string.

However if you do not have the left tag you may need to some some searching. For example you could use the get parent method on the current tag, and then on the parent tag call get child and place the tag in a shift register. Then in a loop get the next tag, etc. until the tag you just got matches your original tag. Whatever tag you had before this tag in the shift register would be the left hand tag.

Happy Coding
Message 2 of 6
(3,949 Views)
Thanks Evan - I have the tag and was using the Active Cell Properties>>String" to attempt to set the string but wasn't setting the Active Item Properties>>Active Item Tag.
Wayne
0 Kudos
Message 3 of 6
(3,949 Views)

I could to modify the Child text. but it is too slow! I've attached the TreeExample.vi. How I can speed up the updating. I need it for a real time monitoring and there is no much time for updating the values. I use an array to show values, next to the tree and it is fast, but it is independant of tree.

0 Kudos
Message 4 of 6
(3,363 Views)

Pleeeeaaaasssseee don't use stacked sequence structures.  Use flat sequence structures if you need to.  And even then in your code you can eliminate most of them by using property nodes and error wires appropriately..

 

Look at https://decibel.ni.com/content/docs/DOC-4519.  Use Defer Panel updates to speed up the execution when updating multiple tree control properties.

 

See attached modified VI.

0 Kudos
Message 5 of 6
(3,357 Views)

Thank you so much RavensFan. The Defer Panel Update is good to speed up, I didn't know it.

0 Kudos
Message 6 of 6
(3,347 Views)