01-27-2011 05:40 AM
Hi,
at the moment I am using a buffer acquisition and always acquire the next buffer (see attached block diagram).
I also monitor the number of lost frames and it seems I do not loose anything.
Still, however the interval between frames is sometimes longer.
It must have to do with the way I trigger .....
W.
01-27-2011 09:34 AM
Hi ratus,
There are two ways to miss images. They can be dropped by the driver due to not being able to keep up (the Lost Buffers count you were querying) or they can be skipped by your processing code. Since you are acquiring the "Next" image you can easily skip processing images (it always waits for the last received buffer number +1). If you want to get every image without skipping them you'll want to use the "Buffer Number" mode on Get Image. Furthermore, the default behavior is that if an image you requested is not available (because you are not keeping up) it will give you a newer buffer instead. You can monitor this by watching the output buffer number. Alternatively, you can change the overwrite mode attribute to have IMAQdx return an error if the buffer number requested is not available.
Eric
01-27-2011 10:34 AM
Well the block diagram specifies that I acquire the "Buffer Number"+1 (sse previous post).
W.
01-27-2011 10:35 AM
@ratus wrote:
Well the block diagram specifies that I acquire the "Buffer Number"+1 (sse previous post).
W.
Compare the buffer number returned to the one passed in.
Eric