Close Reference Function
- Updated2025-01-28
- 2 minute(s) read
Close Reference Function
Closes a refnum associated with an open VI, VI object, an open application instance, or a .NET, ActiveX or Python object.

Inputs/Outputs
![]() reference is the refnum associated with an open VI, VI object, an open application instance, or a .NET or ActiveX object. reference also accepts 1D arrays of references. ![]() error in describes error conditions that occur before this node runs. With the following exception, this input provides standard error in functionality. This node runs normally even if an error occurred before this node runs. ![]() error out contains error information. This output provides standard error out functionality. |
When you create a refnum to a VI, LabVIEW loads the VI into memory. The VI stays in memory until you close the refnum and until the VI meets the following conditions:
- There are no other open references to the referenced VI.
- The front panel of the VI is not open.
- The VI is not a subVI of another VI in memory.
- The VI is not a member of an open project library.