Member of the support class.
path(a)
path(path, b)
path(a, path)
path(a, b)
c = path
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.
| Name | Description |
| a | Specifies a path. a is a string. |
| path | Specifies the existing path list. |
| b | Specifies a path. b is a string. |
| Name | Description |
| c | Returns the list of all current paths. c is a string. |
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.
path(path,'C:\Program Files\National Instruments')