Davenj

CSV file name ?

Recommended Posts

Davenj    0

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. 

Share this post


Link to post
Share on other sites
Joe Tauser    142

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.

  • Upvote 1

Share this post


Link to post
Share on other sites
Joe Tauser    142

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.

 

ascii date.jpg

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now