Example Code

Dynamically Call Reentrant VI's

Code and Documents

Attachment

Download All

This example demonstrates how to dynamically call reentrant VI's. Two example VI's are attached, callingvi.vi and reentrant.vi. To test the program, set the reentrant.vi path correctly in the callingvi.vi block diagram, and run callingvi.vi. You can control the wait in between VI calls, as well as the number of VI's you want to generate.

callingvi.png

It is important to note that a HEX "8" is wired to Open VI Reference, this is to prepare the VI for reentrant run. You can learn more by accessing Detailed Help for this VI:

prep.png

--
Peter Rifken - Field Engineer & Business Manager
Boston / North New England & Maine

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors