LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data file name date

Hi,

I am logging data over several days and writing them to a measurement file using the "write to measurement file" express icon. These files will be very long and I want to create a new file for every day. Is there any way to format the file name path so that it writes into a file with the current date in the name?

I'll attach the VI for clarification.

Thanks,
Mathias
0 Kudos
Message 1 of 5
(3,030 Views)
Hello Mathias,

I haven't found the file that you have attached,
but never the less, here is one example.

Regards,

Stefan

Message Edited by stefan! on 01-31-2008 07:25 AM
0 Kudos
Message 2 of 5
(3,026 Views)
You have to compare the Time Stamp from last start of logging in each while loop iteration and if 1 day is expired, than replace your Log File Path to a new one. Place your replacing of path in a case structure.
0 Kudos
Message 3 of 5
(3,022 Views)
aah, I forgot to attach the file, but you gave me precisely what I needed Stefan! thanks.

Eugen, your solution would probably also work but I will run with this since it is a done solution.

Thanks, always very impressive see the helpfulness on these boards.Smiley Happy
0 Kudos
Message 4 of 5
(3,014 Views)

Hi Mathias,

you can create your filename out of the actuel date. If it is the same day so it is the same filename and the data will add to the old file. Now if a new day comes, the date is new and you get a new filename, so that you have a new file.

Oh, sorry that is what Stefan! attached as vi.

Mike



Message Edited by MikeS81 on 01-31-2008 07:44 AM
0 Kudos
Message 5 of 5
(3,013 Views)