KurtE
Senior Member+
@defragster - yep it would make sense to add. I mainly put in the else stuff including the is Complete as a quick and dirty test to make sure my settings were not screwed up, such that the conversion/collection time does not exceed the interval time.
I was trying to decide how far to take it, example could aim it toward the other thread, and see about, how well I could write the data out to SDCard...
Example could setup to read N channels at some rate and see how long I might be able to write to the SD card before I run out of memory... That is for example the code could allocate lets say a buffer size that works well with SDFat. When the Interval timer, fills this buffer, it will add it to a linked list of items waiting for the main loop to take items off the list and do a write to the SDCARD. In the mean time the Interval timer will look at another chain for free buffers, If none available, malloc a new one... When SDCard finishes the write, it puts that buffer onto the free list...
Question is, is this something I feel like trying or not? Likewise what format to store the data. Should all of the analog channels be interspersed, or do you write separate blocks for each analog channel. Like maybe where each block on SD has maybe has some header data like; which Analog, count, checksum? ... Or probably KISS!...
But again do I feel like doing it? I am not sure... So many other possible fun distractions. Although maybe it would test my T4's sdcard... But now need to figure out what to add to test on the 2" ST7789 display
I was trying to decide how far to take it, example could aim it toward the other thread, and see about, how well I could write the data out to SDCard...
Example could setup to read N channels at some rate and see how long I might be able to write to the SD card before I run out of memory... That is for example the code could allocate lets say a buffer size that works well with SDFat. When the Interval timer, fills this buffer, it will add it to a linked list of items waiting for the main loop to take items off the list and do a write to the SDCARD. In the mean time the Interval timer will look at another chain for free buffers, If none available, malloc a new one... When SDCard finishes the write, it puts that buffer onto the free list...
Question is, is this something I feel like trying or not? Likewise what format to store the data. Should all of the analog channels be interspersed, or do you write separate blocks for each analog channel. Like maybe where each block on SD has maybe has some header data like; which Analog, count, checksum? ... Or probably KISS!...
But again do I feel like doing it? I am not sure... So many other possible fun distractions. Although maybe it would test my T4's sdcard... But now need to figure out what to add to test on the 2" ST7789 display