Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

ROI with Basler A504k, IMAQ, NI1429

I am trying to set an ROI for the CameraLink Basler A504k. To set the ROI on the camera I use Enrico Serge's SerialWrite vi, which seems to work fine. As far as I understand, I also have to configure my NI1429 grabber with the same ROI size. I have tried two versions of setting the ROI on the NI1429.

1) IMAQ Grab Setup with the ROI input. left and top I set to 0 and I just configure width and height.

2) with a property node, however I am not sure, if I have to set the ROI or the acquisition window (what is the difference?)

 

The result is, that sometimes the camera works fine, but very often I get error messages:

1) about every other time the IMAQ Grab Acquire does not return an image (1074396120) (usually for smaller images e.g. 700x700)

2) or I get a NI-IMAQ timeout in the IMAQ Grab Acquire (usually if I have a larger ROI 1000x1000).

3) or I get a NI-IMAQ FIFO overflow caused acquision to halt (1074397140) (also for larger ROIs).

 

Is there a certain order, I have to set the ROI of the camera and the NI1429?

Basler tells me I have to set the width in dividers of 10, NI suggests a divider of 8?! Might that be a problem?

I have also used IMAQ fit ROI. That doesn't seem to influence the result, and I am not sure about the purpose of this function.

 

Maybe there are different problems here.

I would be very thankful for some ideas and hints.

Markus

 

Labview 8.6 under XP

0 Kudos
Message 1 of 3
(4,051 Views)

Did you ever find a solution to this issue?  I am getting the same errors.  If there is any advice you can provide I would be extremely greatful.

 

Thanks

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

See here

 

Also define your buffers correctly. Connect img dst where it is required to a imaq create vi.

0 Kudos
Message 3 of 3
(3,477 Views)