LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to determine the maxium value of scan backlog?

If the buffer size and scan rate is given, how can we determind the
maxium value of scan backlog allowed? Thank you in advance.
0 Kudos
Message 1 of 4
(2,964 Views)
Hi,
in a circular buffered acquisition the scan backlog indicates the number of acquired data to be retrieved from the allocated buffer.
If the scan backlog overcomes the buffer size an error (code:-10846)is generated, this situation occurs when you are not reading fast enough from the buffer untill you fill it.
Therefore you have to keep the scan backlog at a low and above all stable level.
Maybe the question is: how do I know if my application will meet this stable condition?
Just try it and indeed check the scan backlog: if it remains at 0 or at a low level and doesn't increase continously, the application is robust; otherwise it needs to be optimized.
There are many different ways to optimize a buffered acquisition, but maybe it is not the subject of your que
stion.
Anyway, these are general informations for buffered acquisition; you can find more details in the LV Data Acquisition Basics Manual.
Hope it helps,
Alberto
0 Kudos
Message 2 of 4
(2,964 Views)
Thank you for your reply. I completely understand the meaning of
backlog. And I found in my program the backlog can be as high as 1000
but it does not increase continusely. Sometimes it will decrease to
about 200, and all can work well. When I try to set a small buffer
size, error will occur immediately. I wonder how to compute the max
value of backlog so that the buffer size is big enough but is not too
big. I would like to know the detailed ways to optimize the buffered
acquisition although it's not my subject. Can you give me some
suggestions?

On Tue, 10 Feb 2004 08:16:45 -0600 (CST), alberto wrote:

>Hi,
>in a circular buffered acquisition the scan backlog indicates the
>number of acquired data to be retrieved from the allocated buffer.
>If
the scan backlog overcomes the buffer size an error (code:-10846)is
>generated, this situation occurs when you are not reading fast enough
>from the buffer untill you fill it.
>Therefore you have to keep the scan backlog at a low and above all
>stable level.
>Maybe the question is: how do I know if my application will meet this
>stable condition?
>Just try it and indeed check the scan backlog: if it remains at 0 or
>at a low level and doesn't increase continously, the application is
>robust; otherwise it needs to be optimized.
>There are many different ways to optimize a buffered acquisition, but
>maybe it is not the subject of your question.
>Anyway, these are general informations for buffered acquisition; you
>can find more details in the LV Data Acquisition Basics Manual.
>Hope it helps,
>Alberto
0 Kudos
Message 3 of 4
(2,964 Views)
Hello Jujian,

Thank you for contacting National Instruments.

The amount of your back log is system dependant. It depends on the computer and the applications running on that computer. To set your buffer size, simply look at your maximum scan backlog and add 100 to prevent a buffer overflow error.

In your case, this would be 1000 + 100 = 1100.

I hope this helps,

Sean C.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,964 Views)