Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

CWIMAQImage limited to 800x600?

Programming in VisualBasic .Net 2003. Just upgraded to version 2 of IMAQ1394 drivers for the Vision Development Module.

I have a Firewire camera that I am displaying video with. Using an AxCWIMAQViewer control and attaching a CWIMAWQImage to the viewer. Everything is fine up to 800x600.

When I attempt to display at a higher resolution, which my camera is capable of and has done, the CWIMAWQImage limits itself to 800x600. It is, however, cropping the edges of the large image off. The AxCWIMAQViewer is larger than 800x600 which leaves me with an empty border around the 800x600 image.

What I need is for the image to be read in at the higher resolution and have the cropping "controlled" by the size of the AxCWIMAQViewer control. This worked before I upgraded the drivers as mentioned above.

The same phenomenon happens when I use the Attributes1394.Net example from NI. It does *NOT* happen in Measurement and Automation Explorer. I get the larger images there.

Help?

Thanks.

- Jack
0 Kudos
Message 1 of 6
(3,515 Views)
Jack,

I am not able to reproduce your problem. I am running IMAQ 1394 2.0, NI-IMAQ 3.1.1, and Vision 7.1.1. If you have Vision, try running the example program ReadImage.vb from the "C:\Program Files\National Instruments\Vision\Examples\MSVB.NET\1. Getting Started" folder.

Expand the CWIMAQ Viewer so that it displays larger than 800x600 and open the attached picture.

Do you still have problems performing this test?

I would make sure that you have the latest version of NI-IMAQ.

I hope that this helps narrow the problem down. If not, let me know more details such as which version of NI-IMAQ you have and if you have the Vision Development Module.
0 Kudos
Message 2 of 6
(3,505 Views)
IMAQ1394 v2.0, Vision 7.1.1. All the references in the project show version number 7.1.1. Nothing in the 3.x range. Not sure how to find that version number. The closest I came was a readme file that talked about 3.0.

Tried the ReadImage project and it loaded a large jpg just fine. I added a Vision control to my form and loaded the same, large jpg and it worked fine. 1394 video still goes back to 800x600.

Yes, I do have the Vision Development Module.

Thanks.

- Jack
0 Kudos
Message 3 of 6
(3,496 Views)
Jack,

Sorry for the delay - I'm trying to track down a 1394 camera with capabilities above 800x600 (all of the ones I have ready access to are 800x600 or smaller resolution) - but I will be able to get one, it will just take another day.

I will see if I can reproduce this problem you are seeing and find a solution for you.
0 Kudos
Message 4 of 6
(3,481 Views)
Jack,

I finally did track down a 1024x768 1394 camera (a Marlin F080C from Allied Vision). I was able to modify the 1394 Snap example that installs with IMAQ for 1394 under the directory:

C:\Program Files\National Instruments\NI-IMAQ for IEEE-1394\Examples\MSVB.NET\Snap1394.NET

The only thing I changed was the CWIMAQViewer object to the size of 1044x788 (with a border set to 10 - meaning that the image viewed is 1024x768). My image displayed correctly - with no edge cutoff (see attached pic - see where I changed the size of the CWIMAQViewer object - circled in red).

Try the example program with the one modification I made and see if you are still getting the same results. If everything is working, there must be some line of code in your application which is keeping the image buffer size set to 800x600.

Hopefully this helps. Let me know if you are able to find the problem.
0 Kudos
Message 5 of 6
(3,475 Views)
Figured out the problem. The last time I'd fiddled with that camera in Measurement and Automation, I'd had it at 800x600. After I futzed with it at a higher resolution, it'll show those larger sizes just fine in my program. Not sure just *why* it would do that, but it works right now.

Thanks for the help.

- Jack
0 Kudos
Message 6 of 6
(3,459 Views)