LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
wiltonred

Data Folders Name in sortable date format

Status: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined. 

I'm a new user and have noticed data are put into folders with the project date as the name. An Example is: 10152012_111940_AM.

In one project I generated several folders which I realized cannot be sorted chronologically by name. My suggestion would be name folders using this format: YYYYMMDD_HHMMSS where HH uses the 24h clock. That way folders will sort chronologically. So the above folder would be 20121015_111940. The attachment shows a folder with renamed files.

2 Comments
altenbach
Knight of NI

You need to be much more specific. Which particular function puts the data into such folders?

 

 Are you using some express VI or something else? What exactly? Does it come with LabVIEW, with some third party driver, or from elsewhere? Who wrote the program you are using?

 

LabVIEW is a fully featured programming language, so by using lower level tools, you can programmatically compose the file or folder names any way you want with very little effort, even the way you are suggesting.

 

(For example in the "write to measurement file" express VI, you can have it create file with a data&time suffix and it will use a more reasonable format (e.g. testdata__12-10-17_0027.txt) that would correctly sort the way you want.)

Darren
Proven Zealot
Status changed to: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined.