Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Insufficient resources available for the required video mode

Hi, I'm trying to acquire an image from a 1394 DCAM compliant camera and I got this message. There is a post already to addess this problem. I followed the steps to adjust the video mode through 'MAX' but still got this message. The camera is woking since I can see the image through 'MAX' and adjust those parameters. In the code the return value of 'imaq1394CameraOpen2' is good. But 'imaq1394SetupGrabCW' returns the error code showing the message in the title.
 
0 Kudos
Message 1 of 4
(3,975 Views)

Hi Edward,

Are you trying to use the Grab example thats ships with the NI-IMAQ for IEEE-1394 driver?

Here are some things you can try:

1. Make sure that MAX is not using the camera when you try the VB/VC example. (you can close MAX just to be sure)

2. Make sure that the camera is associated with the Legacy NI-IMAQ IEEE1394 driver (and not the NI-IMAQdx driver) in MAX.

Please let me know if these suggestions help.

Thank You,

Jaidev

Senior Product Manager
National Instruments
0 Kudos
Message 2 of 4
(3,959 Views)

Hi Jaidev,

Your suggestins are absolutely right! The driver I used is NI-IMAQdx but in the code I use CWIMAQ1394xxxx functions which is wrong. When I try CWIMAQdx.... functions it works!

Thanks a lot!

I have a new problem coming out. I actually have a talk to Evan yestoday. I'm using this line to take an image:(SnapImage is defined as CWIMAQImage)

    status = IMAQdxSnapCW(session, SnapImage)

When I process the image with:

    CWIMAQVision1.MatchGeometricPattern SnapImage, MatchingTemplate_1, MatchOptions, MatchReport_1

There is a pop up error message: invalid image type. I checked the reference that 'IMAQdxSnapCW' may change the image type 'If the image type does not match the video format of the camera, the function changes the image type to a suitable format.'

What is the solution?

Thanks,

Xin

0 Kudos
Message 3 of 4
(3,948 Views)

Hi Xin,

Is the MatchingTemplate_1 also a CWIMAQImage? What method are you opening that Image with?

The issue might be that the template and SnapImage might not be the same format. You should try and capture both the template and SnapImage with the same camera.

Let me know if this helps.

Jaidev

 

 

Senior Product Manager
National Instruments
0 Kudos
Message 4 of 4
(3,926 Views)