04-14-2009 04:17 AM
It is very easy to make subVIs in LabVIEW, but is it possible to go the opposite way? Is it possible to "unwrap" a subvi and get the nodes back with their connections? I could always use undo, but I would like to test for a while and then decide whether it is worth while keeping the subvi. I find it very tedious to open a subVI, cut and paste the nodes to the main VI and then reconnect all the connections at last. There has to be an easier way?
Solved! Go to Solution.
04-14-2009 04:21 AM
Hi Even,
see this link please:
http://forums.ni.com/ni/board/message?board.id=170&message.id=374627&query.id=67521#M374627
Mike
04-14-2009 06:55 AM
04-14-2009 07:55 AM
Hi Even,
with the "inline ..." function you insert all code from the subvi into the vi where your subvi is located. I thought this is what you want, because for me it's the reverse of creating a subvi.
Mike
04-14-2009 08:21 AM
Hi Even,
Just give it a try and see if it's what you need. Quit LabVIEW, add the line "inlineSubVIEnabled=TRUE" (without the quotes) to LabVIEW.ini and restart LabVIEW. You will see an "Inline SubVI" right-click menu option on SubVIs. As Mike said, that should do what you want.
Daniel
04-16-2009 06:11 AM
04-16-2009 06:27 AM
Even wrote:
That is really amazing! Thank you very much! Is there also an easy way to switch back to the subvi icon?
No, inlining is a one-way operation (of course you can select the code portion and create a SubVI out of it, but this will create a new SubVI).
Inlining isn't just a "display setting", the caller VI will no longer have any connection to the SubVI that was inlined. If you want to switch back to using the SubVI you'll have to wire it manually.
04-24-2009 06:23 AM