//Loop_print.c Data acquisition. Loop with data printed to a file #include #define BUFFER_SIZE 64 //buffer size int i=0; int j=0; int buffer[BUFFER_SIZE]; //buffer for data FILE *fptr; //file pointer interrupt void c_int11() //interrupt service routine { int sample_data; sample_data = input_sample(); //new input data buffer[i] = sample_data; //store data in buffer i++; //increment buffer count if (i == BUFFER_SIZE - 1) //if buffer full { fptr = fopen("loop.dat","w"); //create output data file for (j=0; j