Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Taking severy pictures needs to much time

Solved!
Go to solution

Hi

we are using VBAI 2012 and Basler Ace Cameras for an application. We want to take three pictures one after the other on highest speed. The pictures are configured for 1ms exposure time.

 

When we make a benchmark test the first picture needs 1ms, the second picture need 14ms and the third 27ms.

 

we tried it with immediate picture and take every picture.

 

is there any trick how we can handle it to make several pictures one after the other?

 

thanks

Oliver

0 Kudos
Message 1 of 6
(5,481 Views)

Use Every Image mode to acquire sequential images. If your acquisition is happening faster than your inspection, the buffers will fill up and so some acquisition steps may fail getting the next image and have to clear out the buffer and start with the first image in the buffer. You could:

1. Increase the buffer size to reduce the chances of this happening. You will still run into this case if your acquisition is faster than your processing, but just not as frequently.  Add the following to the Vision Builder.ini file in the [Settings] section if you want to increase the max allowed buffers.

MaxIMAQdxBuffers = <Max Allowable Num Buffers>

It's important to note that IMAQdx only allows user access to half the buffers so if you specify 10 buffers, we can only have access to 5 of them.

 

2. Reset the acquisition using a Read/Write IMAQdx Attribute step before your acquisition steps to ensure the first three steps always get the first three images of the acquisition. This is probably not what you want since resetting the acquisition can take ~50-100ms.

 

3. Use a triggered acquisition where you send three triggers for every iteration of your inspection. This will ensure you don't ever get into the roll over case where you exceed the number of buffers you specified.

 

Also make sure to put a delay to simulate your processing after the third acquisition step. When I just had 3 acquisition steps in a row without anything else I saw the same behavior you described but this is because the first step gets an image that's already been acquired, the second step gets one that is being acquired and the third waits for the image to be acquired (a simple high level rough idea of what is probably happening). If I add a delay equal to the acquisition time*3 after these three acquisition steps, all three steps take about 1-2ms to complete when using the Next Image Mode and the frame index is always sequential (i.e. no missed images).

 

Hope this helps,

Brad

Message 2 of 6
(5,474 Views)
Solution
Accepted by topic author OZI

How long does it take the camera to take a picture?  An exposure time of 13 ms would create that interval.  It also depends how long it takes the camera to send back the image.  If the max frame rate on the camera is about 60 Hz, this would give you about this rate.

 

Reducing the exposure time will speed that part up.  Reducing the image size is the only way to reduce transfer time.

 

See what frame rate MAX gives you in free run mode.  That is going to be the best rate you can get, even with triggering.  It just takes the camera a minimum amount of time to take an image and read it from the sensor before it is ready for the next image.

 

Bruce

Bruce Ammons
Ammons Engineering
Message 3 of 6
(5,471 Views)

Hello Bruce

it was the frame rate!

 

I was focused on the exposure time and forgot completely that the frame rate is only 36fps. This is the reason why I got only a minimum time of 27ms.

 

Thanks

 

Oliver

0 Kudos
Message 4 of 6
(5,468 Views)

Hello Brad

the idea with the delay between the images helped a little bit. The second picture needed less time.

 

But finnally I have to look for a camera with a faster frame rate for our needs.

 

thanks

Oliver

0 Kudos
Message 5 of 6
(5,467 Views)

What resolution is the image?  Remember, you can increase the frame rate by reducing the image size.  Basler cameras usually have a frame rate inversely proportional to the image height.  For some reason image width doesn't do much.

 

Bruce 

Bruce Ammons
Ammons Engineering
0 Kudos
Message 6 of 6
(5,464 Views)