Hi @Yuchen,
I looked into your GigE camera detection issue with MATLAB 2025B and this appears to be a version-specific regression bug affecting the GigE Vision adaptor. Since your Point Grey USB camera works fine in 2025B but the GigE camera that worked in 2024B no longer gets detected, this points to a problem specifically with how 2025B handles GigE Vision hardware. Here's a systematic troubleshooting approach with code snippets to help diagnose and potentially resolve the issue.
Step 1: Run Diagnostic Commands
First, let's check what MATLAB can see. Run these commands in order and note the output:
% Check which adaptors are installed
imaqhwinfo
% Check specifically for GigE adaptor
imaqhwinfo('gige')
% List detected GigE cameras
gigecamlist
% Run comprehensive diagnostic
imaqsupport
The imaqsupport command is critical as it checks GenICam installation and environment variables. Look for any error messages in the GENICAM section of the output.
Step 2: Test Basic Camera Connection
If gigecamlist shows your camera, try connecting to it:
% Method 1: Connect by index (if only one camera)
g = gigecam(1);
% Method 2: Connect by IP address (replace with your camera's IP)
g = gigecam('192.168.0.2');
% If successful, test image capture
img = snapshot(g);
imshow(img);
% Clean up
clear g
If this fails with "Camera failed to open" or similar errors, proceed to Step 3.
Step 3: Try GenTL Interface Instead
The GenTL interface often bypasses GigE-specific bugs. First, check if it's available:
% Check for GenTL adaptor
info = imaqhwinfo;
disp(info.InstalledAdaptors)
% If 'gentl' is not listed, you need to install it via Add-Ons
% Go to MATLAB Add-Ons > Get Add-Ons > Search for "GenICam Interface"
If GenTL is available, try using it with videoinput:
% Reset the toolbox
imaqreset
% Try GenTL adaptor
vid = videoinput('gentl', 1);
preview(vid);
% If successful, acquire an image
start(vid);
img = getsnapshot(vid);
imshow(img);
stop(vid);
delete(vid);
Step 4: Network Configuration Check
GigE cameras require specific network settings. Verify these in Windows Network Adapter Properties:
% In MATLAB, check network configuration programmatically is limited
% You'll need to manually verify:
% 1. Open Network Connections
% 2. Right-click your Ethernet adapter -> Properties
% 3. Ensure "Packet Filtering Driver" is ENABLED (checked)
% 4. For dedicated camera NICs, disable "Internet Protocol Version 6 (TCP/
IPv6)"
% 5. Set static IP in same subnet as camera (e.g., if camera is 169.254.x.x, set
PC to 169.254.y.y)
Step 5: Check for DirectShow Driver Conflicts
DirectShow drivers can interfere with GigE detection:
% Run imaqsupport and check the output
imaqsupport
% Look for any mentions of DirectShow or vendor-specific drivers
% If found, you may need to uninstall camera vendor software that includes
DirectShow drivers
Step 6: Test with Different Packet Sizes
If the camera connects but fails during acquisition:
% After creating gigecam object
g = gigecam(1);
% Try different packet sizes (common values: 1500, 9000)
g.PacketSize = 1500; % Standard MTU
g.PacketDelay = 0;
% Or for Jumbo Frames (if NIC supports it)
g.PacketSize = 9000;
g.PacketDelay = 1000;
% Test image capture
img = snapshot(g);
Step 7: Compare with 2024B Configuration
If you still have 2024B installed, run this diagnostic in both versions:
% Save this output from both versions and compare
diary('matlab_gige_diagnostic.txt');
disp('MATLAB Version:');
version
disp('Image Acquisition Toolbox Version:');
ver('imaq')
disp('Installed Adaptors:');
imaqhwinfo
disp('GigE Adaptor Info:');
imaqhwinfo('gige')
disp('Support Package Diagnostics:');
imaqsupport
diary off
If Nothing Works:
This is almost certainly a bug in MATLAB 2025B's GigE Vision support. Your options are:
1. Temporary workaround: Use MATLAB 2024B for GigE camera work (parallel installation is supported)
2. Alternative interface: If your camera manufacturer provides a GenTL producer (.cti file), install it and use the GenTL adaptor instead
3. Report the bug: Contact MathWorks Technical Support with your diagnostic information
Contact MathWorks Support:
When you contact support at https://www.mathworks.com/support/contact_us.html , provide:
- Your camera model and manufacturer
- Output from imaqsupport command
- Confirmation that it worked in 2024B
- The fact that USB cameras work fine in 2025B (isolates the issue to GigE)
- Any error messages from the commands above
This will help them reproduce the issue and potentially provide a hotfix or patch for 2025B.