Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

path (MathScript Function) (Windows, Not in Base Package)

Member of the support class.

Syntax

path(a)

path(path, b)

path(a, path)

path(a, b)

c = path

Description

Returns the current search path list. LabVIEW searches the path list from top to bottom. If you define a function to use in the LabVIEW MathScript Window or in the MathScript Node, you must add the directory in which that function resides to the search path list.

path(a) changes the current path to a. path(path, b) adds b to the end of the search path list. path(a, path) adds a to the beginning of the search path list. path(a, b) changes the current path to the concatenation of the two input paths. The search path list you specify with path applies only while LabVIEW is open. If you restart LabVIEW, LabVIEW searches only those paths you specified in the Path section of the MathScript Preferences dialog box.

Details

Inputs

Name Description
a Specifies a path. a is a string.
path Specifies the existing path list.
b Specifies a path. b is a string.

Outputs

Name Description
c Returns the list of all current paths. c is a string.

Details

Changes that you make to the search path list with this function apply to all MathScript Nodes in the same application instance as the LabVIEW MathScript Window.

Examples

path(path,'C:\Program Files\National Instruments')

Related Topics

addpath
path
pathdef
rmpath


Resources


 

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