Transfer Closing Main VI to Target VI
Complete the following steps if you want LabVIEW to transfer the responsibility of closing a target VI from the main VI to the target VI.
- Open the target VI and select File»VI Properties to display the VI Properties dialog box.
- Select Execution from the Category pull-down menu.
- Place a checkmark in the Reentrant Execution checkbox.
- Click the OK button to close the VI Properties dialog box.
- In the main VI that calls the target VI, set the options parameter in the Open VI Reference function to 8.
- In the Run VI method in the main VI, set the Wait until done parameter to FALSE and the Auto Dispose Ref parameter to TRUE.