This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to save my memory datas??

I write an array to save some data in my program, 

=========================================

interrupt void adc_isr(void)

{

int i=0

float data[666]=0.0

Voltage1 = (AdcResult.ADCRESULT1-1730);

Van = 70.71*(Voltage1)/1730;

if(i<=666)
i++;
else
i=700;

data[i]=Van;

.

.

.

}

=======================================

first, is the program right??

second, I want to save memory to use those data to draw waveforms in EXCEL, matlab or something else.

and...

finally I get a 0kb file, that means I saved nothing!

I want to ask that which step I do is wrong??

please somebody help me ~

I really have no ideal :(

P.S. I'm sorry that my English is so poor~