Davenj Posted January 9, 2017 Report Share Posted January 9, 2017 I need to have the date and time used as a file name for creating CSV files to the SD card (V130). The CSV files will be created on average 20 times a day. It may be weeks or months before they are reviewed, thus the need for date and time. Any suggestions would be appreciated. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted January 10, 2017 MVP 2022 Report Share Posted January 10, 2017 You're limited to eight characters, so maybe something like DDDYYHH.csv would work, where DDD is the day of the year. You may want to keep in mind that you only get 64 files per directory and there a main and four sub directories, for a total of 320 files. The SD card is not a hard disk with virtually unlimited file names. I'd keep appending one or two big files. I've done this to thousands of rows with no problems. Joe T. 1 Quote Link to comment Share on other sites More sharing options...
Davenj Posted January 11, 2017 Author Report Share Posted January 11, 2017 Joe thanks for the quick reply. Dave Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted January 11, 2017 MVP 2022 Report Share Posted January 11, 2017 Convert the date to a string and write it - chose option #7 in the RTC to ASCII block. If you need help post your code and I'll hack it in. Joe T. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.