LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I unwrap a subvi?

Solved!
Go to solution

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?

Message 1 of 8
(5,986 Views)
Solution
Accepted by topic author Even
Message 2 of 8
(5,985 Views)
I am not sure if I understand what the use of so called "inline subVIs" has to do with moving nodes in and out of subVIs. Could you please explain a little bit?
0 Kudos
Message 3 of 8
(5,957 Views)

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

Message 4 of 8
(5,947 Views)

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

 

Message 5 of 8
(5,942 Views)
That is really amazing! Thank you very much! Is there also an easy way to switch back to the subvi icon?
0 Kudos
Message 6 of 8
(5,898 Views)

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.

0 Kudos
Message 7 of 8
(5,893 Views)
If the 'Inline SubVI' function is grey and disabled on the menu, what is the problem?
0 Kudos
Message 8 of 8
(5,793 Views)