Jump to content

Current VI's Path function: Difference between revisions

From LabVIEW Wiki
Added page
 
mNo edit summary
 
Line 11: Line 11:


To obtain the path to the directory containing the application, use the [[Application Directory function|Application Directory VI]].
To obtain the path to the directory containing the application, use the [[Application Directory function|Application Directory VI]].
{| class="wikitable"
! Data Type
! Name
! Description
|-
! [[File:Path Indicator.png|link=Path data type]]
| '''path'''
| '''path''' is the path to the current VI.
|}


== History ==
== History ==

Latest revision as of 20:14, 8 June 2021

Object information
Owning palette(s) File Constants palette
Type Function
Requires Basic Development Environment
Icon

Current VI's Path function returns the path to the file of the current VI. If the VI never has been saved, this function returns <Not A Path>.

Usage

This function always returns the current location of the VI. If you move the VI, the value returned changes.

If you build the VI into an application, this function returns the path to the VI in the application file, and treats the application file as a VI library.

To obtain the path to the directory containing the application, use the Application Directory VI.

Data Type Name Description
path path is the path to the current VI.

History

Version Change(s)
LabVIEW 2018 More info to come.

See Also

External Links