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

ls (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

Owning Class: support

Requires: MathScript RT Module

Syntax

ls

c = ls

c = ls(a)

Description

Lists all files in a directory. ls(a) is equivalent to dir(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.

Examples

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

Related Topics

cd
dir


 

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