Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Why ring buffers limited to 50?

I'd like to acquire a few seconds worth of video using only
NI-IMAQ. Ideally I would like to store images to disk every
0.1s, or thereabouts. Currently, I can grab 50 images at ~25fps,
which gives me 2 seconds of recording. As I need to record for
longer, I tried to increase the number of buffers above 50
and of course this failed.

My main question is: why is the number of buffers limited to
50 when I have more than enough memory for more?

There may be ways round this limitation. Does anyone know if
what I am trying to do is possible with NI-IMAQ?

(There is an item in NI Developer Zone > Development Library >
Vision > Image I/O > File I/O with the title "Performing Real-
time Image Acquisition, Averaging, and Logging" which looks
like it
might be interesting, but the zip file seems to be
missing.)

Thanks!

Francis
0 Kudos
Message 1 of 3
(3,137 Views)
Francis,

There is a simple solution. In MAX, there is a setting for the maximum number of buffers for IMAQ (under Tools -> IMAQ). It defaults to 50, but can be set as large as you like. I tend to set it very large (several thousand). I don't know why they made the default so small.

Bruce
Bruce Ammons
Ammons Engineering
Message 2 of 3
(3,137 Views)
Bruce Ammons wrote:
> There is a simple solution. In MAX, there is a setting for the
> maximum number of buffers for IMAQ (under Tools -> IMAQ). It defaults
> to 50, but can be set as large as you like. I tend to set it very
> large (several thousand). I don't know why they made the default so
> small.

Bruce - Were all problems this simple to solve! Thank you very
much indeed.

Francis
0 Kudos
Message 3 of 3
(3,137 Views)