Owning Class: support
Requires: MathScript RT Module
pathgetsubset
pathgetsubset dir
pathgetsubset(dir)
p = pathgetsubset(dir)
Legacy Name: genpath
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.
pathgetsubset returns the current search path list. pathgetsubset(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 page of the LabVIEW MathScript Properties dialog box to change the default search path list for the LabVIEW MathScript Window. Use the MathScript page of the Options dialog box to change the default search path list for MathScript Nodes in the main application instance.
The following table lists the support characteristics of this function.
| Supported in the LabVIEW Run-Time Engine | Yes |
| Supported on RT targets | Yes |
| Suitable for bounded execution times on RT | No (affects entire script) |
p = pathgetsubset(pwd);
addpath(p)