Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with timeout on IMAQdx VIs

I have an application in which I configure an IMAQdx Sequence acquisition to grab a series of images.  In essence, I predefine the number of frames that I want to acquire to set up the buffer and then set it up as a one shot acquisition.  We then start the acquisition and use "Get Image" to place each individual image in to buffer.  After the buffer is filled we compress the buffer in to an AVI movie.

 

This paradigm worked well for us for many applications.  We have been using it for some time now without an issue.  We recently came across an instance where it won't work.  We have a time lapse application where we want to take each of these images at rates around 1Hz (or slower... all the way down to on demand).  Everything seems to work fine at 6HZ, but at 5Hz I receive a timeout error.

 

I can't find a way to set the acquisition timeout.  IMAQdx Configure Acquisition doesn't have a timeout setting and neither does IMAQdx Get Image.  Does this have to be set using an IMAQdx property node?  While writing this I found "timeout" in the acquisition attributes section... Is this what I am supposed to be using?  If this is what I am supposed to use, when do I call it?  Do I call it after the configure acquisition or after the Start Acquisition?

 

Thanks in advance for your help!

 

Paul

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

Just in case anyone down the road runs in to this, the timeout was indeed the issue.  This can be set via a property node (of class IMAQdx).  I was doing this, but I kept receiving a cryptic "Can't set attribute" error.  It turns out that this is one of the attributes that can't be set once an acquisition is started.  The configured acquisition had to be stopped, the timeout updated and then the acquisition restarted.

Message 2 of 2
(3,359 Views)