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

dir (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

dir

c = dir

c = dir(a)

Description

Lists all files in a directory. dir(a) is equivalent to ls(a). If you do not specify a, this function returns the current working directory.

Details

Examples

Inputs

Name Description
a Specifies the directory for which you want a list of files. a can include regular expressions. a is a string.

Outputs

Name Description
c Returns a list of the files in a. c is a string.

Details

If you use this function in a stand-alone application or shared library and do not specify an input, LabVIEW returns a list of all files in the directory where you installed the application or shared library. (Real-Time Module) If you deploy this function to an RT target and do not specify an input, LabVIEW returns a list of files in the directory given by the Default Data Directory VI.

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

% Lists all VIs in the working directory
C = dir('*.vi')

Related Topics

cd
labviewroot
ls


 

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