Member of the support class.
genpath
genpath dir
genpath(dir)
p = genpath(dir)
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.
genpath returns the current search path list. genpath(dir) returns a search path list that contains dir and all subdirectories of dir. This function does not change the search path list. You must use the path function or the addpath function to change the search path list.
| Name | Description |
| dir | Specifies a path. dir is a string. |
| Name | Description |
| p | Returns the list of all current search paths. p is a string. |
Use the MathScript: Search Paths Options page to change the default search path list.
p = genpath(pwd);
addpath(p)