Gigecam not working: camera is detected but no image comes out
19 views (last 30 days)
Show older comments
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 Comments
C R
on 14 Oct 2016
Edited: C R
on 14 Oct 2016
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.
Answers (4)
Mark Lamm
on 28 Mar 2022
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
Jhonata Tridapalli
on 6 Apr 2018
Hello!
I get this same problem. Have you found any solutions yet?
0 Comments
Xb wang
on 15 Jun 2022
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 Comments
See Also
Categories
Find more on GigE Vision Hardware in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!