Why does the Image Acquisition Toolbox detect my GigE camera, but show a red X when previewing?

16 次查看(过去 30 天)
I am having difficulty getting the Matlab Image Acquisition Toolbox on MATLAB 2019a to display images from my GigE Allied Vision Mako camera. I am using the GenICam adapter - my camera shows up as "Mako (gentl-1)" under Image Acquisition Toolbox in the Hardware Browser of the Image Acquisition Tool GUI. I have installed the gentl-1 add-on and I am able to detect the Mako device through the Image Acquisition Toolbox. However, when I select "Start Preview", all I see is a red X. Per instructions from the Getting Started with Matlab document from Allied Vision, I first previewed images through the Vimba Viewer SDK, which worked just fine. After closing Vimba Viewer and re-trying with Matlab, I am still unable to preview the image, despite the Mako device showing in the Hardware Browser and connecting to the device in Image Acquisition Toolbox.
Here is a copy of the Session Log:
vid = videoinput('gentl',1','Mono8');
src = getselectedsource(vid);
vid.FramesPerTrigger = 1;
preview(vid);
The sequence of events leading to this are as follows:
1. Open Matlab
2. Open Image Acquisition Toolbox
3. Select Mono8 (default) from Hardware Browser
4. Select Start Preview
*** The support staff at Allied Vision suggested this may be a MATLAB licensing issue or something related to the Image Acquisition Toolbox. Matlab was installed through my university-wide site license.

回答(1 个)

Shiva Kalyan Diwakaruni
This is to my understanding that you are facing a problem where MATLAB Image Acquisition Toolbox is detecting your device correctly but while clicking the 'Start Preview' button, the area where the image should be shows a red 'X.
A possible workaround would be to try to use this camera with the gentl adaptor on a Windows machine.
Baumer provides a Baumer GAPI SDK which includes Baumer Camera Explorer and also a GenTL producer, which if it works will allow using this camera with the gentl adaptor in MATLAB (instead of gige adaptor).
Baumer GenTL producer can be installed by downloading and installing their Baumer GAPI package. During setup select to install "GigE Producer" and reboot computer after setup is finished.
Once a GenTL producer is installed, in MATLAB:
1.Install "Image Acquisition Toolbox Support Package for GenICam Interface" add-on.
One difference vs gige is that you would create the videoinput object this way
vid = videoinput('gentl', 1)
  1 个评论
gujax
gujax 2023-1-9
Is that a robust solution you proposed? Why do several folks have issues with GigE cameras running on Matlab? I had issues in 2019 and that required a patch. Now I am using Lucid vision camera but similar issues like seeing big X or just getting messages like 'timeout'. I do not think it is Firewall but not 100% sure. Is there a way to debug what is going wrong? Can someone suggest a logical way?

请先登录,再进行评论。

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by