LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do I remove a subvi

How do I remove a subVI from the main VI and return to the original VI without subVI?

0 Kudos
Message 1 of 9
(8,091 Views)
All you have to do is delete the the vi and fix anything that it might break.
Tim
GHSP
0 Kudos
Message 2 of 9
(8,088 Views)
Or, if you're using source code control, simply go back to an earlier revision. You're using source code control, right?
0 Kudos
Message 3 of 9
(8,063 Views)

Let me be more specific. I have a VI and I created an automatic subVI by selecting several items and using Edit>>Create SubVI. But, then (after saving/closing the file) I realised that I didn't want to create that particular subVI. Is there a simple way to undo the subVI and return to the original VI without subVIs?

0 Kudos
Message 4 of 9
(8,029 Views)
I am not familiar with source code control.
0 Kudos
Message 5 of 9
(8,026 Views)

Search for an inlining tool that was posted on this forum (If I remember correctly it was Damiens developements, you find a list at the breakpoint forum). Run this on the vi to getget the code inline again. But: this is using scripting, so back-up your work befor running this tool. It's not really safe.

 

Felix

Message 6 of 9
(8,025 Views)
  1. Add "inlineSubVIEnabled=TRUE" to your Labview.ini file.
  2. Open the main VI, right-click the subVI, and select "Inline subVI".
  3. select the desired inlining options at the dialog.

(What is your LabVIEW version? I don't remember when this feature got introduced)

0 Kudos
Message 7 of 9
(8,019 Views)

See also the paragraph right above Figure 4 at the following link:

 

Fuzzy Wires and Constant Folding in LabVIEW

0 Kudos
Message 8 of 9
(8,009 Views)
Inlining was introduced in LabVIEW 7.1, but it was very buggy.  I would not trust it without a full backup before about LabVIEW 8.0 (the inlining code I posted earlier will crash LabVIEW 7.1 in most cases).  Since it was an internal feature, it did not have to work in all cases.
Message 9 of 9
(7,966 Views)