Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Basler camera - AOI setting in the camera file

Hi,

I have a little problem with my  Basler cameras(Basler spL4096-140km). I want to add definition of the Area Of Interest (length and also starting pixel) to the camera file. However, I don´t know what should I write to the serial command. I was looking into the manual, but I just can´t figure it out from that tables. Did anyone try to add this into the camera file?

 

Looking forward to hearing from someone

Stanka

0 Kudos
Message 1 of 3
(5,490 Views)

Hi Stanka,

 

are you talking about the region of interest (ROI) or the acquisition window?

 

The ROI will be defined in the application itself, not inside the camera file.

 

The acquisition window can be set using the following command:

 

AcquisitionWindow (10, 20, 1000, 1000)

 

in the InterfaceInfo section of the camera file. This will set the left offset to 10, the top offset to 20 and the width and height to 1000.

 

The easiest way to create a camera file is the:

 

NI Camera File Generator

https://www.ni.com/en/support/documentation/supplemental/19/creating-a-camera-file-using-the-ni-came...

 

The directory for the camera files is the following:

 

C:\Users\Public\Documents\National Instruments\NI-IMAQ\Data

 

opening these files with any editor gives you access to the syntax.

 

If you have further questions please feel free to come back.

 

Kind Regards,

Vanessa

AE Munich

 

 

0 Kudos
Message 2 of 3
(5,476 Views)

Hi Vanessa,

 

Thank you for your reply. In meantime, I was able to add the AOI attribute into the camera file. The ROI or acquisition windows were not enough in my case. I want to run my cameras as fast as I can. With less used pixel, the cameras should run faster. But when I tried to change ROI or acquisition windows, the shortest possible exposure window (and of course, the speed) was always the same. It looked like the cameras were still reading out all the pixels. With AOI changed, the exposure time can be shorter and cameras are running faster.

 

Kind Regards,

Stanka

0 Kudos
Message 3 of 3
(5,460 Views)