GigE Camera Connection: Unable to preview images (Camera; Basler scA1300-32gm)

24 visualizaciones (últimos 30 días)
Spiros
Spiros el 24 de Nov. de 2014
Editada: Dan Adam el 14 de Feb. de 2018
Hi. I am trying to connect my Basler scA1300-32gm camera to Matlab, but despite the fact that the camera is connected, when i press preview i get a white figure with a huge red "X" in the screen. What i do is:
vid=videoinpute('gige',1,'Mono16')
src=getselectedsource(vid);
src.PacketSize = 9000;
preview(vid);
I have also follow the steps in (<http://uk.mathworks.com/help/imaq/gige-vision-hardware.html#bsm6heh)>,
and i have set my ethernet's Jumbo Frame to 9KB MTU.
Despite all these i still cannot see anything in the preview window.
The same happens when i use the Image Acquisition Toolbox is tlef but i get the same.
The weird think is that Matlab can see the camera, and everything looks ok, but i cannot receive information from it.
Initially i have installed the camera'a software, and the camera worked fine, then i uninstalled it as Matlab troubleshoot suggests.
Also i have set up the Ethernet connection to only receive IPv4 and nothing else as the troubleshooters suggests.
Do you have any idea what the error might be? Any suggestions or any thoughts?
Thank you very much in advance.
Kind regards, Spiros
  2 comentarios
Ritz
Ritz el 10 de Mzo. de 2016
Editada: Ritz el 10 de Mzo. de 2016
Hello!
I get this same problem. I have a Basler acA1300-gm connected to Matlab 2015b and when I try to preview the camera, I only get the same white screen and a huge 'X'. Gige Vision Hardware is the only installed adaptor in my Matlab. I can obtain images using Pylon viewer.
I'm using an MSI computer with the following specifications:
Processor: Intel(R)Core(TM) i7-4710MQ CPU @ 2.50 GHz
Installed memory (RAM): 16.0 GB
System type: 64-bit OS (Windows 8.1), x64-based processor
I've already tried setting all Ethernet properties to the maximum value possible, e.g. Jumbo Frames - 9KB MTU. I've set the Transport Layer Packet Size in Pylon viewer to 9000 as well as suggested in the comments.
However, when I try to take an image using the following code:
vid = videoinput('gige',1);
im = getsnapshot(vid);
I only get the following error: A timeout occurred during GETSNAPSHOT. This is aside from the preview error I get as mentioned above.
Do you have any ideas on how to resolve this problem?
Any answers/ideas will be much appreciated. Thanks!
sam e
sam e el 28 de Jul. de 2017
i had the same problem but i found what is the problem if you have an antivirius go ahead and see the webcam protection option you will find the matlab right there, and you can fix it from there

Iniciar sesión para comentar.

Respuestas (2)

ziye xu
ziye xu el 25 de Abr. de 2016
I have similar error and I solved it by turning off firewall.
  1 comentario
Dan Adam
Dan Adam el 14 de Feb. de 2018
Editada: Dan Adam el 14 de Feb. de 2018
Thanks!! Worked for me too
Windows Firewall -> Allow an app or feature through Windows Firewall -> find Matlab in the list and allow it

Iniciar sesión para comentar.


Abdoo
Abdoo el 1 de Abr. de 2015
hi ... did you solved your problem ?? i have same thing
  2 comentarios
Spiros
Spiros el 1 de Abr. de 2015
Yes i did. My problem was that i really had a very slow computer with very slow CPU.
To use the GigE with Matlab was not possible due to the fact that my CPU was very old and slow. You need i think at least core 2 duo. This problem is actually caused by frames being dropped.
One solution was to use the Pylon viewer, and mess around with Transport Layer Packet Size. For me when i set the packet size to 5000 it worked, however this has to do with your CPU speed and the speed of your Ethernet card adapter.. So, for you this value may be different.
Now, that i change my computer to something faster i don't have this type of problem.However still i have to set up from Image acquisition of Mtalab the Transport Layer Packet Size to 9000.
Probably what i told you so far will not help you much, so if you want i can help you once you give me more details about your CPU and Ethernet adapter. The more information you can share with me the better i will be able to help you, since there is no straight answer to this problem.
Kazim Hanbay
Kazim Hanbay el 29 de Abr. de 2015
You set up the matlab basler support package. In addition, you must change packet size in pylon.

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by