The thing is that when i tried to put it inside the printf(), (printf("Acquired %d samples. Total %d\r, Voltage = %d",read,totalRead+=read,data);), only received 0 value. I am sure that the computer can see the card because i make measurements by the MAX. I know that i must put the data somewhere else but after the printf() there is fflush(stdout)that erases the values...
Chris