Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Using Symbolic Paths

LabVIEW 2011 Help

Edition Date: June 2011

Part Number: 371361H-01

»View Product Info

A symbolic path is like a variable that expands to a full pathname. Use a symbolic path for a path that might change, for example, because of where LabVIEW is installed. Symbolic paths are also referred to as relative paths. You can specify a symbolic path in the Default Data Directory and VI Search Path sections of the Paths page of the Options dialog box, or in the Help path field on the Documentation page of the VI Properties dialog box. LabVIEW converts a symbolic path to an absolute path at run time.

The following list defines each symbolic path.

  • <osdatadir>—Refers to the path to the default file directory on the operating system. Use this symbolic path when setting the VI Search Path on the Paths page of the Options dialog box.
  • <topvi>—Refers to the directory that contains the top-level VI that LabVIEW is opening. This symbolic path is only available when setting the VI Search Path on the Paths page.
  • <foundvi>—Refers to a list of all directories where you have previously located a subVI. During a search, LabVIEW adds to this list any directory in which LabVIEW finds a subVI. <foundvi> helps you locate a directory of VIs that has been moved or renamed. When you open a VI that calls another VI that has been moved, you must find that directory only once and then LabVIEW adds this path to the list of directories. This symbolic path is only available when setting the VI Search Path on the Paths page.
  • <vilib>—Refers to the vi.lib directory in the labview directory. Use this symbolic path when setting the VI Search Path on the Paths page.
  • <userlib>—Refers to the user.lib directory in the labview directory. Use this symbolic path when setting the VI Search Path on the Paths page or the Help path on the Documentation page of the VI Properties dialog box. To use this symbolic path, enter <userlib>:\ then the filename or path and filename to the help file.
  • <instrlib>—Refers to the instr.lib directory in the labview directory. Use this symbolic path when setting the VI Search Path on the Paths page or the Help path on the Documentation page of the VI Properties dialog box. To use this symbolic path, enter <instrlib>:\ then the filename or path and filename to the help file.
  • <helpdir>—Refers to the help directory in the labview directory. Use this symbolic path when setting the Help path on the Documentation page of the VI Properties dialog box. To use this symbolic path, enter <helpdir>:\ then the filename or path and filename to the help file.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit