Closing Static VI References in LabVIEW

Updated Mar 22, 2018

Reported In

Software

  • LabVIEW

Issue Details

I am using several Static VI References in my LabVIEW application. Do I need to explicitly close these with the Close Reference VI?

Solution

You do not have to explicitly close the reference that a Static VI Reference ​returns. LabVIEW loads the referenced VI into memory when you load the top-level VI. LabVIEW closes this reference when the top-level VI is no longer in memory.

However, if you use the Open VI Reference function with the Static VI Reference, you will want to ensure you close the reference that is passed out of the Open VI Reference function. 

WAS THIS ARTICLE HELPFUL?

Not Helpful