LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Linking a sub VI

Hello

When I place a sub VI into a VI, I assume that the sub VI is copied into the VI. Is it possible to link a sub VI instead (assume that the number of terminals does not change, only the internal wiring / circuit does) ?

I have a fairly large VI consisting of a large number of sub VI. One particular sub VI is buggy and I am trying to save myself the bother of deleting the icon, rewiring etc.

Thanks
0 Kudos
Message 1 of 4
(2,826 Views)
The subVI is not copied into the main VI. It's just like calling a function in C or subroutine in VB. Just edit your subVI and the operational changes are reflected the next time you run your main VI.
0 Kudos
Message 2 of 4
(2,808 Views)
A subVI is not copied into anything. It is a separate file. If you have the main open, double clicking the subVI will open it and you can make whatever changes you want. The changes are immediately effective. Just remember to save it before closing everything. If you don't have the main open, you can open the subVI, edit it, and then next time you run the main, the changes will apply. You will not need to delete and rewire. The only time you will have to rewire is if you change the connections on the front panel of the subVI.
0 Kudos
Message 3 of 4
(2,807 Views)

Hi,
hopefully I understood your problem.
Please check out the following links:

Dynamically Loading and Calling VIs
How Can I Dynamically Load And Run Another VI In Parallel To My Main VI?

BR,
ThSa

 
0 Kudos
Message 4 of 4
(2,804 Views)