John Lokanis Posted March 26, 2010 Report Share Posted March 26, 2010 Anyone have a good way of converting a variant tree into something displayable/log-able without writing some massive recursive function? (using 8.6.1, so no native recursion for me unless I use VI Server tricks) I need to dump the status of my tree to a log file for debug purposes. The tree is just an empty variant with attributes that have attributes that have attributes... thanks, -John Quote Link to comment
Black Pearl Posted March 26, 2010 Report Share Posted March 26, 2010 Implement recursion by using a stack (not too difficult and faster than native recursion and much faster than VI Server recursion). Propably you'd like to have it saved as xml so you can read it with SW like excel. I did post some stuff for reverse order (xml to tree) on the dark side. At the end of the thread I show some code. Felix Quote Link to comment
Ton Plomp Posted March 26, 2010 Report Share Posted March 26, 2010 Well since LabVIEW 8.5 you can create recursive functions, so that shouldn't be an issue. Ton Quote Link to comment
John Lokanis Posted March 26, 2010 Author Report Share Posted March 26, 2010 thanks guys. I got this to work and was able to find a brand new bug (at least to me) in 8.6.1. See my other post on the Get Variant Attribute function. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.