I use use the digital value of ADC's to convert them to physical vaules (each second).
Each second the histogram (in array form) will be updated.
Per year this parameters are within the memory 3652460*60 = 31,5 E6 times refreshed.
I assume that the parameters (for instance Taveraged) has a fixed address within the memory.
For the future: After a month logging I want to convert the histogram (stored in SRAM) to a CSV-file and send the info to a server.
The question: Who can tell me about the lifetime of SRAM?
ArduinoStarter1, could you select "Modify" and correct the link please ?
Robin2, IIRC = "If I Recall Correctly"
The value of variables in SRAM stay forever. They can be read and written a million times per second without wear or tear. But as soon as there is a power fail or the Arduino resets, they are gone.
With a battery backup, you might keep the data in SRAM.
Without battery backup, you could store them to EEPROM once a day. After a month read the EEPROM and generate the CSV-file, and start all over again.
There are other possibilities, for example external memory or a (micro)SD card. I prefer to use an SD card, and dump all the data to a file. That way the old data can still be read on a computer, if something went wrong.
SRAM works differently from eeprom or flash. Due to the way data is written in the latter two, the 'silicon will eventually wear out'. No such risk with SRAM.
SRAM will eventually die (like your TV will die, your cellphone will die and so on); but chances that the SRAM dies are just as big as the chance that any other component in the (AVR) processor dies.