From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Buffer overflow

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?

0 Kudos
Message 1 of 3
(2,272 Views)

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.. 😉

0 Kudos
Message 2 of 3
(2,265 Views)

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:

 

  1. You have automatic errror handling enabled (the default setting)
  2. You don't have the error out wired (You could just wire it to the nearest structure boundary and the error popup will no longer show)

If you don't want to see the error popup, simply wire the error output. 😄

0 Kudos
Message 3 of 3
(2,246 Views)