Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

imgRingSetup fails with IMAQ1422

I'm using NI-IMAQ for Visual C++, and I have some standard code using a ring buffer that I have used for years (taken straight from NI example code). This code still works fine with the IMAQ 1407 and 1409. It works for bit-depths of 8, and 10 pixels on the 1409.

However, It has recently failed with an IMAQ 1422 with a 12-bit camera. It fails when calling imgRingSetup, and returns:

wait timed out - acquisition not complete

Can anyone tell me what might cause imgRingSetup to return such an error? There is no acquisition in progress at the time of failure, I have verified that with other "img" API calls. Is there something about the 1422 that uses a ring buffer differently?
0 Kudos
Message 1 of 2
(2,877 Views)
Time out errors are usually not caused by setup functions. My guess is that this has something to do with the hardware setup itself. Are you able to acquire an image from your camera in MAX? Acquiring images from digital cameras is quite a bit different than with standard analog. You have to have a special cable and camera configuration file. You should be using the Measurement & Automation Explorer (MAX) to verify that all of you hardware (cabling, 1422, and driver software) is configured correctly before you start coding your application. If MAX gives you a timeout error, you know to focus your troubleshooting on the hardware and not your software.

Good Luck

KyleV
0 Kudos
Message 2 of 2
(2,877 Views)