White background with red cross using GenTL adaptor for Allied vision GigE Camera
6 次查看(过去 30 天)
显示 更早的评论
I am trying to use Image Acquisition toolbox to capture images from Allied Vision GigE camera using GenTL adaptor. The camera is recognized because when I can do imaqhwinfo('gentl',1), it gives me information of the camera. I am using imaqtool or Image Acqusition Explorer then I click on the default adaptor and Start Preview. All I see is white background with red cross.
I also changed Firewall settings to allow MATLAB to commicate through both private and public.
Software that came with the camera (Vimba) is installed and is able to detect images.
What do I need to do to be able to detect images using Matlab?
2 个评论
Till
2022-5-23
I have the same (or very similar problem) with a GigE camera from Lucid Vision Labs (camera model Atlas10). I can connect to the camera using videoinput() (I am using the 'gige' adaptor, not 'gentl'). I can start the camera from Matlab and Windows TaskManager confirms that data is coming in via the network connection. However, the FramesAvailable count remains at 0, while RAM is filling up. When I use stop() with the camera, data stops coming in. getsnapshot() does not work either and times out.
Like Nina, I have also set the Windows firefall to let data through. ThirdPary software from Lucid can connect to the camera without problems and is able to acquire frames.
gujax
2023-1-7
Hi Having same issues. Either of you found any solutions? In particular using Lucid vision camera
回答(1 个)
Sachin Lodhi
2024-2-13
Before continuing with the troubleshooting steps listed below, make sure the Gigabit Ethernet card/adapter configuration and network connection settings are according to the "GigE Vision Quick Start Configuration Guide": https://www.mathworks.com/help/imaq/gige-quick-start-guide.html
Find general GigE troubleshooting tips here:
Find additional information on hardware configuration here:
A) Gather Basic Information
Get to know the exact configuration of the camera in relation to the network card installed in the computer:
Is the camera connected directly to the Ethernet card, or is there a network switch involved? If using multiple cameras: Is each camera connected to a separate Ethernet card, or are they connected via a network switch? How are the cameras acquiring their IP addresses? Are they using automatic IP configuration? If using multiple cameras, what are the subnets of each of the cameras?
B) Common Issues
One common situation is when the camera is detected with "IMAQHWINFO" or "IMAQTOOL", but images cannot be acquired from the camera (blank/black preview), or a timeout error occurs on GETSNAPSHOT, or no frames are acquired on START. This is caused by a firewall or a GigE packet filtering driver (installed by a 3rd party vendor installation) that interferes with the streaming images communication between camera and MATLAB.
When using the GigE Vision adaptor in MATLAB, a firewall for the specific gigabit ethernet connection dedicated to the camera used should be disabled. The firewall for the other network connections (not used for GigE Vision camera communication) can be left enabled.If the firewall is active for the GigE Vision ethernet camera connection, even if some firewall exceptions are set for MATLAB, it will most likely still interfere with camera communication. When UDP packets for GigE Vision Streaming Protocol are transmitted, the ports on the camera and gigabit ethernet card are dynamic, so it is difficult to setup a firewall configuration to allow for this.Depending on the firewall configuration it is possible to have a scenario in which the camera is detected, but the image data stream is blocked by the firewall.Unlike MATLAB, some applications can stream images from a GigE Vision camera even when a firewall is enabled because they use a packet filtering driver.
C) Common Workaround
All GigE cameras are also compatible with GenTL. To configure the camera to work with GenTL:
- Install the “Image Acquisition Toolbox Support Package for GenICam Interface” from the Add-on Manager in MATLAB
- Identify if there is a native GenTL producer from the camera manufacturer. Download and install the producer if it exists. Within the installed producer files, identify a file with the extension .CTI. Copy the path to the folder containing this .CTI file
- If the manufacturer does not provide a GenTL producer, download an open producer like the Baumer GAPI SDK C v2.14 64-bit version from the following link: https://www.baumer.com/us/en/product-overview/industrial-cameras-image-processing/software/baumer-gapi-sdk/windows/c/14175
- Unzip the downloaded folder to whatever location that you want that will not change. Then inside the unzipped folder, navigate to the “bin” directory. There should be a .CTI file in this folder. Copy the path to this folder. For example, it could be, “C:\Program Files\Baumer SDK\bin”
- Edit the “GENICAM_GENTL64_PATH” system environment variable to include the file path that you copied previously. To do this, Go to Control Panel -> System -> Advanced System Settings -> Advanced and click on "Environment Variables..."
- Locate the “GENICAM_GENTL64_PATH” variable and click “Edit...” Click “New” and then paste the path to the folder containing the “.CTI”. Click “OK” to exit the edit menu
- Verify that the "gentl" adaptor loads. You can use the "imaqhwinfo" command to list installed adaptors. The "gentl" adaptor should be included on the list.
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!