LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I write data to a new file every 24 hours?

I have a VI set up to collect thermocouple data and write the data to a file. How would I configure LabView if I wanted the file writing to write to a new file at the start of each new day (at midnight)?
0 Kudos
Message 1 of 4
(3,295 Views)
One easy way is to base the file name on the current date. The Get Date/Time String function output can be formatted how you want (i.e. replace "/" with "_") and then use the Build Path to create complete path. If this iw wire to the file write function, You'll automatically create a new file when the date changes.
0 Kudos
Message 2 of 4
(3,295 Views)
simply monitor the time at the start of the experiment and the current time,
find the difference, to get the elapsed time

See attached vi
it can be modified to save data at a specific time
0 Kudos
Message 3 of 4
(3,295 Views)
I tried using the build file path but it keeps asking me to choose a file to write instead of writing to the file I specified with the build file path.
0 Kudos
Message 4 of 4
(3,295 Views)