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

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

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the support class.

Syntax

genpath

genpath dir

genpath(dir)

p = genpath(dir)

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.

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.

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 Options page to change the default search path list.

Examples

p = genpath(pwd);
addpath(p)

Related Topics

addpath
path
pwd


Resources


 

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