I am configuring Ad9361 (ARRADIO) with the linux driver. The Ad9361 is connected to Arrow Sockit. I am sending a sine wave under fpga settings in ADI IIO. On the other board, I am receiving using the example under libiio "libiio/ad9361-iiostream.c" (libiio/ad9361-iiostream.c at master · analogdevicesinc/libiio · GitHub ).
I have changed the receiving buffer size to 1000 instead of 1024*1024. In the following command:
rxbuf = iio_device_create_buffer(rx, 1024*1024, false);
I need to store exactly 10000 real time samples. So, I created a loop in the above referenced example which will execute 10 times and each time it will save 1000 samples in a text file.
I would like to know that Are they continuous samples or I might loose some samples after each 1000 samples? I would like to capture samples in real time without loosing say sample.