Thanks for your posting. What I am trying to do is reading values and if these values are higher than a pre-defined value, i need to store values. The problem is, I want to store all the values 1 min before and after the actual event. I think I need a buffer of 2 Minutes and when a event occured, I need to wait 1 Minute and copy the buffer to file. Than I should have 2 Minutes of recorded data.
I dont know if this is the best way doing this and I hope somebody can help me.
Thanks
Marcel