Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

pathgetsubset (MathScript RT Module Function)

LabVIEW 2011 MathScript RT Module Help

Edition Date: June 2011

Part Number: 373123B-01

»View Product Info

Owning Class: support

Requires: MathScript RT Module

Syntax

pathgetsubset

pathgetsubset dir

pathgetsubset(dir)

p = pathgetsubset(dir)

Legacy Name: genpath

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.

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.

Details

Examples

Inputs

Name Description
dir Specifies a path. dir is a string.

Outputs

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

Details

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)

Examples

p = pathgetsubset(pwd);
addpath(p)

Related Topics

addpath
path
pwd


 

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