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

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

LabVIEW 8.2 Help
August 2006

NI Part Number:
371361B-01

»View Product Info

Member of the support class.

Syntax

addpath(dir1)

addpath(dir1, dir2, ...)

addpath(dir1, dir2, ... , flag)

p = addpath(dir1)

p = addpath(dir1, dir2, ...)

p = addpath(dir1, dir2, ... , flag)

Description

Adds directories to the search path list. You can specify an unlimited number of directories to add.

Details

Examples

Inputs

Name Description
dir1 Specifies a directory you want to add. dir1 is a string.
dir2 Specifies a directory you want to add. dir2 is a string.
flag Specifies whether to add the directories to the beginning or end of the search path list. flag is a string that accepts the following values.

'-begin' (default) LabVIEW adds the directories to the beginning of the search path list.
'-end' LabVIEW adds the directories to the end of the search path list.

Outputs

Name Description
p Returns a list of all search paths before the addition of the directories you specify.

Details

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.

This function is not supported in the LabVIEW Run-Time Engine. Do not use this function in a stand-alone application or shared library.

Examples

addpath('C:\Program Files\National Instruments')

Related Topics

path
pathdef
rmpath


Resources


 

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