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.

  1. Open the target VI and select File»VI Properties to display the VI Properties dialog box.
  2. Select Execution from the Category pull-down menu.
  3. Place a checkmark in the Reentrant Execution checkbox.
  4. Click the OK button to close the VI Properties dialog box.
  5. In the main VI that calls the target VI, set the options parameter in the Open VI Reference function to 8.
  6. 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.