11-09-2012 12:36 AM
I am using the following circular buffer:
http://www.ni.com/white-paper/7188/en
Is there a way to read(Continuous) data from the circular buffer while the circular buffer is overflow? (Not to increase the buffer size and not to increase the reading speed.)
Since it will pop up an error if you read(Continuous) data from the circular buffer while the circular buffer is overflow.
How to handle buffer overflow?
11-09-2012 01:56 AM
The diagrams of the circular biffer are not password protected, so you can make any changes you possibly want, then save the result under a new name.
First you simply need to suppress the generation of errors if a buffer overflow occurs, then you need to decide how the program should deal with buffer overflow. It is in no way obvious what it should do instead. Data will be lost and the outcome will be unpredictable.. 😉
11-09-2012 10:11 AM
LawrenceChong wrote:Since it will pop up an error if you read(Continuous) data from the circular buffer while the circular buffer is overflow.
It will only popup an error if both of the following conditions are met:
If you don't want to see the error popup, simply wire the error output. 😄