Image Acquisition Toolbox - imaqtool gets only black images

Hello,
I'm using Matlab R2013a with the Image Acqusiition Toolbox. I'm trying to grab images from a gige-camera. The imaqtool recognizes the camera, but after clicking on "Start Preview", just a black image appears. I get no image ... should be an totally white image. If I use a script for grabbing an image, I get a time-out.
Has anybody a hint for me? Is there a possibilty to test the toolbox?
Thanks for help!
Andreas

 Accepted Answer

Hi,
in the case you are on Windows:
The PacketSize field of the source object must match the value of the Jumbo Frames property, which must be to its maximum value.
Go to your Windows Device Manager and expand the Network adapters node. Open the Properties window for the network device connecting with your camera. Go to the Advanced tab and ensure that the Jumbo Frames selection is set to the maximum value available. Then choose the Performance Options setting and click on the Properties button. Ensure that the Receive Descriptors setting is also set to its maximum value.
The PacketSize can be set with the following code (assuming that the Jumbo Frames property is 9014):
src = getselectedsource(obj)
set(src,'PacketSize','9014')

3 Comments

Hi,
thanks for your help. My problem was the Windows-Firewall. Now I receive an image, but I have some problem with packet resents. Here is the error-message from Matlab: "gige: Block/frame 64 is being dropped because a lost packet is unable to be resent. There are several possible causes for packets being lost."
I changed the Packetsize to the value (9014), which is used by the network interface.
Are there same other propertie, which I can hange to avoid packet resends?
Regards, Andreas
Thanks. I played with the PacketDelay, but the numbers were just to low. Now with a PacketDelay of 100.000Ticks its working.

Sign in to comment.

Asked:

on 22 Apr 2013

Answered:

on 4 Apr 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!