04-15-2022 09:11 AM - edited 04-15-2022 09:13 AM
@H.goodarzi128 wrote:
Yes that's right
Limiting the data file size would be best done.Assuming that the written code stores the sensor data in a text file, how can it generate a new file every month (or every day) and store continued data in it to prevent the previous file from increasing in size?
Thanks again for your guidance and help
There are lots of way to achieve that. What I like to do is use Seconds To Date/Time and break out the "day of year", put it in a shift register, compare it to the "day of year" at each logging interval to see if it has changed, if so then close the current data file and create a new file.
04-16-2022 04:25 PM
Hello
Thank you for this.
I will definitely try it.
Thank you so much for taking the time to guide me. 🙂🙏