Gigecam not working: camera is detected but no image comes out
23 次查看(过去 30 天)
显示 更早的评论
I have Matlab 2014b and I have Support Package for GigE Vision Hardware installed. I have been trying to get AVT Manta G-504B camera to work but I have not succeeded in it. I have not found any help from Matlab help nor forums.
I have AVT Unicam Viewer installed and appropriate network adapter so I can get images from the camera when I use AVT Unicam Viewer. However, I am not able to get any image out with Matlab.
When I type
gigecamlist
Matlab finds the camera. When I create a gigecam object, it also generates the object as should
g = gigecam
g =
DeviceModelName: 'Manta_G-504B'
SerialNumber: '50-0503322406'
IPAddress: 'XXX.XXX.XX.XX'
PixelFormat: 'Mono8'
AvailablePixelFormats: {'Mono8' 'Mono12Packed' 'Mono12'}
Height: 2056
Width: 2452
Timeout: 10
However, when I type
preview(g)
the preview window opens but there is only a red cross on a white background. If I try to take a snapshot with the command
snapshot(g)
I just get the following print
Time out occured while trying to get a frame from the camera. Modify the 'Timeout' property to change how many seconds 'snapshot' method waits to return
image data.
When I try to modify any of the property of the gigecam object g, I just get error messages like these two
>> g.TimeOut = 1
No public field TimeOut exists for class gigecam.
>> g.HorizontalBinning = 2
No public field HorizontalBinning exists for class gigecam.
I would appreciate any help with this issue.
2 个评论
C R
2016-10-14
编辑:C R
2016-10-14
We are having this exact same issue also on a G-609B using R2015a.
In our case, the camera works just fine using the AVT Vimba Viewer on the same PC. We make sure the packet size matches (in Windows and in MatLab) and we disabled the Vimba filter on the NIC card as recommended by MatLab. Still nothing.
Then, we checked the gige settings in Vimba, and instead of what we set in the network configuration for packet size (9014) it was different (8999). We changed to this value in MatLab, and suddenly it worked.
回答(4 个)
Mark Lamm
2022-3-28
I found it was a Windows firewall problem. To let Matlab through the firewall, click Start, type 'Allow an app through Windows Firewall', click the Control Panel item; navigate down to Matlab, enable all
Xb wang
2022-6-15
Hello,
I get the similar problem. My problem is that using gigecam in matlab works well,but deploying an "exe" form *.m is not worked .The gui opens but just a white background and a cross.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 GigE Vision Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!