LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open multiple files based on user input?

I am writing an analysis vi that will process raw data collected by another vi. The analysis vi will be controlled by the user (the collection vi is automatic with a trigger). I would like to have the user select a date, and have all files from that date loaded into a 3D array in the program. I have no problems with the manipulation once the files have been loaded, but I can't find a way to load a selection of files based on a date input. Any ideas?

-Sue Kristoff
0 Kudos
Message 1 of 2
(2,705 Views)
You can do the next thing:
1. Create the loop in which you will compare the date of files with user input.
2. Paste the function Functions/File I/O/Advanced File Functions/"File/Directory Info.vi" into the loop and wire the current file path refnum to this vi. This VI returns the parameter last mod. This parameter "indicates the date and time at which the file or directory was last modified in seconds since the standard reference time, 12:00 a.m., January 1, 1904, Universal Time".
3. Compare "last mod" of each file with user input and then process only those files which correspond to user input.

Good luck.

Oleg Chutko.
0 Kudos
Message 2 of 2
(2,705 Views)