Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Ni-Imaq programing on camera hardware binning

Hello,

 

I am trying to write an image acquisition program in C++ using NI-Imaq library. 

I have no problem acquiring the saving the images without any binning, but my application requries binning to get higher

frame rate.  The camera I am using is Imperx IPX-2M30-L and the framer grabber is PCI-1428.  The camera is capable

of doing 2, 4 and 8 binning in both directions.  I was hoping to use IMG_ATTR_VSCALE and IMG_ATTR_HSCAL, but 

only got invalid value for IMG_ATTR_VSCALE error.  Is that because IMG_ATTR_VSCALE is deprecated and is not supported?

Is there anyway to do the binning and still be able to acquire images with imgRingSetup and imgSessionCopyBuffer?

 

Thanks a lot,

Travis

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

You need to set binning on the camera, and this is done with the camera file. The camera file for your camera has a binning section at the bottom. Open MAX and go to your camera attributes and you'll see a binning feature at the very bottom. Set this to Vertical and Horizontal and acquire and you should see the faster frame rate in MAX and your C program when you save these settings.

 

The NI-IMAQ attribute you were using scales the image returned by the camera and so it wouldn't increase the frame rate of the camera. I think they are only valid for analog cameras. 

 

Hope this helps,

Brad

0 Kudos
Message 2 of 2
(3,379 Views)