GigE Camera Connection: Unable to preview images (Camera; Basler scA1300-32gm)
조회 수: 18 (최근 30일)
이전 댓글 표시
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
Ritz
2016년 3월 10일
편집: Ritz
2016년 3월 10일
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
2017년 7월 28일
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
답변 (2개)
Abdoo
2015년 4월 1일
hi ... did you solved your problem ?? i have same thing
댓글 수: 2
Kazim Hanbay
2015년 4월 29일
You set up the matlab basler support package. In addition, you must change packet size in pylon.
참고 항목
카테고리
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
더 보기
Help Center 및 File Exchange에서 Image Preview and Device Configuration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!