Writing data into the array and its listing

I need to save the data to the Arduino array() at a certain time delay(500) and then have a second delay time delay(2000) that these data stored in array lists and arrays reset for the new store.

How can I accomplish this?

This not worked:

volatile unsigned long data=0;

double getGust()
 unsigned long reading=anem_min;
 return data;

void loop() { 


How can I accomplish this?

Without using delay(), obviously. See the blink without delay example, among others, for some clues.


Did you even try compiling this nonsense? Why are you trying to create an array containing one value?