Clear IIO Buffer #1161
Unanswered
tylersweat
asked this question in
Q&A
Replies: 1 comment
-
@tylersweat the easiest way to do this is to set the kernel buffers to 1, then pull 2 buffers each time to guarantee "fresh" data. Throw away the first. Due to the way the buffering works between the kernel and userspace this I believe is the only way to accomplish what you want. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using libiio with the PyADI-IIO Python wrapper for the PlutoSDR. Is there a way to clear the receive buffer so that I know that when I get data from the buffer that it is fresh?
Alternatively, is there a way to set it up so that new data replaces the old data as it becomes available?
Beta Was this translation helpful? Give feedback.
All reactions