dir (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

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

文章是否对您有帮助?

没有帮助