Jump to content

Path Constant: Difference between revisions

From LabVIEW Wiki
Add new page (stub)
 
mNo edit summary
Line 1: Line 1:
{{stub}}
{{LabVIEW Palette Object Information|palette=Functions Palette/Programming/File I/O/File Constants{{!}}File Constants palette|type=constant|icon=File Constants Palette - Path Constant.png}}


{{LabVIEW Palette Object Information|palette=Functions Palette/Programming/File IO/File Constants{{!}}File Constants palette|type=constant}}
Use the '''Path constant''' to supply a constant path value to the block diagram.
{{TOCright}}
== 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.


== Usage ==
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.


== Best practice ==


== Tips and tricks ==
== Tips and tricks ==
Line 12: Line 16:


== History ==
== History ==
{{ambox|text=History information is needed.  What changes have occurred over previous versions?}}
{| class="wikitable"
! Version
! Change(s)
|-
|[[File:LV2018.png|frameless|border|64x64px|LabVIEW 2018|link=LabVIEW 2018]]
|More info to come.
|}


== See also ==
== See also ==

Revision as of 20:38, 7 June 2021

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

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