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

Document Type: Example Program
NI Supported: Yes
Publish Date: Jun 25, 2009

Count VI Files With Recursion

0 ratings | 0.00 out of 5
Print

Overview

This program will count the number of files with .vi extension in the current directory and all subdirectories including library files (llb).

Downloads

Filename: count_vi_files.vi
Requirements: View

Using recursion this VI counts the number of VI files there are in the directory you select and all its subdirectories. The VI will include the VI's bundled inside library files (llb).

This program is an example of tail-end recursion. Each subdirectory will spawn a new instance of the VI and will be added to the parent to create a final file count. 

Note: Use of this recursive program with a large directory or file-system (i.e. C:\) as the Folder Path may take a very long time to run.

Requirements


Filename: count_vi_files.vi

Software Requirements


Application Software: LabVIEW Base Development System 8.2
Language(s): LabVIEW

 
0 ratings | 0.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).