Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I programmatically change the acquisition window settings for a linescanner in Labview

Hi,
 
I am using LV8, IMAQ8, a Basler L101k linescanner and a PCI1426 camera link frame grabber. I would like to be able to change the Y resolution of the image, ie, the number of lines  programmatically, can this be done? I would also be happy to be able to load different .ico files for the camera programmatically to achieve the same result.
 
Thanks,
Mike
 
 
0 Kudos
Message 1 of 2
(3,002 Views)

Mike,

You should be able to change the size of the image you are acquiring with your camera programmatically, but there are some things to keep in mind.  If you are using LabVIEW, on both the snap and grab functions you can select a region to acquire smaller than the total resolution of the camera.  There are inputs directly on the Snap function and on the Grab Setup function that allow you to input this region.  By only changing the number of pixels to acquire horizontally you would in effect be changing the number of lines you were acquiring. 

If you are using the Snap function in your code, then each time it gets called you could change the region that is being acquired.  However, if you are using the Grab function then you would have to stop the acquisition in your code, change the region to acquire, and then restart the Grab. 

Jason N

0 Kudos
Message 2 of 2
(2,976 Views)