LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI & SubVI

it would be possible to include in a VI Program continued access, while a SubVI a different VI is in the execution? if it were possible, could someone tell me how it works?
0 Kudos
Message 1 of 4
(2,714 Views)

I'm sorry, but I don't understand what it is that you're asking. Are you asking about running a subVI on its own while your program is doing other stuff? If so, the simplest solution is parallel loops. Another solution is to use the VI Server properties and methods to launch the VI dynamically so it goes off and runs while you return to your program and continue. If this is not what you meant, please try to provide more information.

0 Kudos
Message 2 of 4
(2,707 Views)
If you want to be able to run a subVI while one of its callers is running, there is a simple solution.  Make the subVI reenterant.  You will then be able to open a second instance to the subVI and execute it independantly.  However, if this subVI depends on external resources (files, external test equipment, data sources ect...) you may get unexpected results.  If the subVI merely operates on its inputs (like a calculator or data converter) this works extremely well.

"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 4
(2,700 Views)

see this

As you don't need multiple instances of the same vi ignore the for loop and the "8" constant at the Open vi ref.

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