LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I retrieve the time of file creation and use it for data analysis in a VI?

I haved logged data from sensors periodically and stored it in files (tab delimited). I would like to plot the data vs time. How can I retrieve the time of the file creation and use it in a VI?
0 Kudos
Message 1 of 5
(3,918 Views)
Carla;

There is a VI called File/Directory Info, located in the function palette -> File I/O -> Advanced File Functions, that you can use to retrieve the time a file was modified.

Rather than that approach, consider timestamping your data. For instance, there are two examples included with LabVIEW, one called Write to Text File and the other Read from Text File, that togheter shows you how to save and read data to a text file, including time information.

Regards;
Enrique Vargas
www.visecurity.com
www.vartortech.com
0 Kudos
Message 2 of 5
(3,918 Views)
If you're using some flavor of Windows, then the attached VI can grab the file creation date, along with some other usful file info. All the info is returned as strings so it's easy to use as you need.

This is saved in ver 6.0.2, but it upgrades OK.

Ed


Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Message 3 of 5
(3,918 Views)
thanks enrique, but is ther a simple way to convert the U32 output to string?
0 Kudos
Message 4 of 5
(3,918 Views)
eureka! got it!
0 Kudos
Message 5 of 5
(3,918 Views)