LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read All Files in a Folder

I have a large set of data. Many don't have similar names at all. They
all have the same data form (a 100x2 array for example).

Is there a way to have a VI read all the files, one after another,
automatically? It's a lot easier when the files are the same name, but
ending/starting with different ID numbers. If they're all different,
what can I do?

Also, is it possible to create a VI, so that a file 'dropped' onto the
VI's icon, will cause it to process the data? I'm not sure if this is
a Labview or MS Windows problem.

Thank you for your time.

-Dorian
dorianjps@hotmail.com

Please post if possible, to share.
0 Kudos
Message 1 of 3
(2,416 Views)
Dorian;

You can simplify this if all your files are in the same directory. Check the example attached that read all .jpg images in a directory and display them in a picture control. Enter the directory path before running.

As for your second question, it can be done, but I think (I might be wrong) that you must convert your vi into an executable. Check the following example:

Get Calling File Path from Command Line

Best regards;
Enrique
www.vartortech.com
Message 2 of 3
(2,416 Views)
You may also want to check Mr. Jean-Pierre Drolet's "Guidelines to open your own file type from Windows Explorer" at his website.

Enrique
www.vartortech.com
0 Kudos
Message 3 of 3
(2,416 Views)