GigE Camera Connection: Unable to preview images (Camera; Basler scA1300-32gm)
17 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146200/image.png)
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 Kommentare
Ritz
am 10 Mär. 2016
Bearbeitet: Ritz
am 10 Mär. 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
am 28 Jul. 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
Antworten (2)
Abdoo
am 1 Apr. 2015
hi ... did you solved your problem ?? i have same thing
2 Kommentare
Kazim Hanbay
am 29 Apr. 2015
You set up the matlab basler support package. In addition, you must change packet size in pylon.
Siehe auch
Kategorien
Image Processing and Computer Vision
Image Acquisition Toolbox
Image Preview and Device Configuration
Test and Measurement
Image Acquisition Toolbox
Image Acquisition Toolbox Supported Hardware
GigE Vision Hardware
Mehr anzeigen
Mehr zu Image Preview and Device Configuration finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!