This example demonstrates how to set and get values from controls and indicators of a dynamically called VI.
LabVIEW can link to subVIs by two different methods:
Statically linked subVIs are the normal subVIs that are dropped on the block diagram of the main VI. A statically linked subVI is loaded into memory at the same time the main VI is loaded.
With dynamic linking, subVIs are not loaded until specifically instructed by the code of the main VI. This enables the programmer to create applications which can exchange parts of the application during run-time.
This example shows one way to exchange data between the caller and the callee. To do so, the property node Set Control Value and Get Control Value is used.
LabVIEW Base Development System 2012 (or compatible)
If running in a Real-Time context, you will need the LabVIEW Real-Time Module 2012 (or compatible)
No hardware is necessary to use this example VI
Steps to Implement or Execute Code
Download and open the attached ZIP-file
Open and run the [Main] ...VI
Additional Information or References
Note: This example shows one possible way to transfer data to and from a dynamically called VI. Depending on your application, there are many other ways to accomplish the same functionality with less effort. Take a look into this documents:
**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**
Jon S. National Instruments LabVIEW NXG Product Owner