01-20-2022 07:35 AM
I have a function that I run on test machines that polls the Data folder(s) where I'm writing the data to and removes the oldest files (of optional extension type for filtering) until the folder size is below a certain size (or below a certain size for that file type).
Polls the folder(s) every X seconds and sits there running in the background making sure the HDD never gets full.
- very useful for soak tests of systems producing large data sets, (or cleaning up a nearly full HDD).
I'll leave it as an exercise to you to work out how I've done it 😉
James
01-20-2022 11:30 AM - edited 01-20-2022 11:32 AM
Hi Lamar,
@LamarDavisss wrote:
Hey mate! Do you have this VI with you. If yes can you please post it here?
You learned how to check available disk space for all your drives so far.
Now you want to know how to determine the creation date of files (aka their age) to be able to delete oldest files?
What have you tried so far?
After checking the file functions for that GetVolumeInfo you should know where to look for other file functions (like File/DirInfo or GetFileSize), don't you think?
@LamarDavisss wrote:
We do not have full development version of labview accessible to us. We get hardly 1 hr to use labview in our institute.
You will learn LabVIEW much better by trying on your own instead of asking in (very) old threads about VIs never posted...
Which LabVIEW version (year, bitness, edition) do you have access to?
Did you notice those "Training resources" offered at the top of the LabVIEW board? That should be the next step after your 1hr introduction at your institute!
01-21-2022 02:46 AM
@LamarDavisss wrote:
Hey mate! Do you have this VI with you. If yes can you please post it here?
Sure.
Note that the image is a snippet. You can, when done correctly, download it and drop it on a diagram to get the code. The forum usually shows a resized (and snippet removed) image though. See Solved: Re: How do I get a snippet from the board into my block diagram? - NI Community
Anyway, I saved the VI back to LV13, and attached it.
01-28-2022 04:10 AM
wow