i2dx Posted March 13, 2006 Report Share Posted March 13, 2006 the appended VI should list all SubVIs of a VI. But the array is empty ... Download File:post-885-1142281377.vi I am affraid, it will not work at all, but - as I never give up - I'd like to ask, if someone has an idea/tip whatever to get the list of SubVIs? [edit: minor typo] Quote Link to comment
PJM_labview Posted March 14, 2006 Report Share Posted March 14, 2006 the appended VI should list all SubVIs of a VI. But the array is empty ...Download File:post-885-1142281377.vi I am affraid, it will not work at all, but - as I never give up - I'd like to ask, if someone has an idea/tip whatever to get the list of SubVIs? [edit: minor typo] The BD is like a "giant cluster", you have to traverse it to get all its objects. If you just get the SubVIs on the Top Level Diagram, you will not get the SubVIs inside structures. There is now a traverse utility in LV 8.0 to traverse BD or FP objects. The attached VI is using this. PJM Download File:post-121-1142291153.vi Quote Link to comment
Mike Ashe Posted March 14, 2006 Report Share Posted March 14, 2006 For an older example of traversal (and a nifty example of using recursive calls too) search LAVA for Michael Aivaliotis's Set Diagram Color tool. or another example is in this topic - traverse to get all objects in BD http://forums.lavag.org/index.php?s=&showt...findpost&p=6737 Don't get me wrong, I love the new traverse tool in LV8. But knowing the traversal and recursion techniques has a lot of other worthwhile uses. Quote Link to comment
i2dx Posted March 14, 2006 Author Report Share Posted March 14, 2006 thank's a lot, guys! i'll check it out today evening ... Quote Link to comment
i2dx Posted March 15, 2006 Author Report Share Posted March 15, 2006 thanks a lot, PJM, you opened the door. first I got an error at the "to more specific class" node, where the "GObject" references are converted to SubVI references. But when I deleted the Refnum specifier, and created a new one - again with the SubVI-Class - it worked fine. :question: I added the property "VI Reference" into the loop and now I am able to get the VI References of ALL (including those in Disable Structures !) of the selected VI! I hope I will soon find the time to implement that into my Project duplicator tool :thumbup: Download File:post-885-1142452162.zip Quote Link to comment
Jim Kring Posted March 16, 2006 Report Share Posted March 16, 2006 The BD is like a "giant cluster", you have to traverse it to get all its objects. That is a great analogy. :thumbup: 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.