Path Constant

From LabVIEW Wiki
Jump to: navigation, search
Object information
Owning palette(s) File Constants palette
Type Constant
Requires Basic Development Environment
Icon File Constants Palette - Path Constant.png

Use the Path constant to supply a constant path value to the block diagram.

Usage

Right-click the constant and select Browse for Path from the shortcut menu to navigate to and select a path. You also can set the value of a path constant by using the Operating tool or the Labeling tool to click it and enter the path you want. To enter the path to a VI inside an LLB, add a backslash and the VI name to the end of the path to the LLB. For example, C:\example.llb\color.vi. To enter the path of a VI from a palette, place the VI on the block diagram and <Ctrl>-drag the VI into the path constant.

You can resize a path constant.

You cannot change the value of the path constant while the VI runs. You can assign a label to this constant.


Tips and tricks

  • Drop a VI onto path constant to insert the VI path. This works for either controls, indicators and constants. In order to drop the VI path, the VI must be saved to disk first.
  • Drop a file onto a path constant to insert the file path.

History

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

See also

External links