DALSA Nano GigE connection with Image Acquisition Toolbox
7 次查看(过去 30 天)
显示 更早的评论
Deall all,
I am trying to acquire images from a DALSA Nano GigE camera.
I have installed Sapera Drivers and the camera is correctly recognized (also, I can acquire images from Sapera Cam Expert).
The network adapter has also been correctly configured for the Jumbo Packages and so on. I have a point to point connection with the camera using a dedicated Ethernet cable.
This MATLAB code recognizes the camera (GigE add-on installed) and creates the adapter:
hwinfo = imaqhwinfo;
dev_info = imaqhwinfo('gige',1);
vid = videoinput('gige',1,'BayerRG8');
Summary of Video Input Object Using 'Nano-C1280'.
Acquisition Source(s): input1 is available.
Acquisition Parameters: 'input1' is the current selected source.
10 frames per trigger using the selected source.
'BayerRG8' video data to be logged upon START.
Grabbing first of every 1 frame(s).
Log data to 'memory' on trigger.
Trigger Parameters: 1 'immediate' trigger(s) on START.
Status: Waiting for START.
0 frames acquired since starting.
0 frames available for GETDATA.
However, when I try to start acquiring images 'FramesAvailable' are always 0. I have also tested changing the trigger options, and the number of frames per trigger, with no success. No frames are acquired :
figure;
start(vid);
while(vid.FramesAvailable >= 2)
data = getdata(vid,2);
imshow(data);
drawnow %update figure window
end
stop(vid)
I have also disabled the Windows Firewall for MATLAB, again getting no results:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/888805/image.png)
As a second alternative, I have used the functions provided by gigecam, again with no results:
>> gigecamlist
ans =
1×5 table
Model Manufacturer IPAddress SerialNumber UserDefinedName
______________ __________________ _________________ ____________ _______________
{'Nano-C1280'} {'Teledyne DALSA'} {'169.254.6.177'} {'S1103829'} {'S1103829'}
>> g = gigecam('169.254.6.177')
g =
Display Summary for gigecam:
DeviceModelName: 'Nano-C1280'
SerialNumber: 'S1103829'
IPAddress: '169.254.6.177'
PixelFormat: 'BayerRG8'
AvailablePixelFormats: {'BayerRG8' 'BayerRG10'}
Height: 1024
Width: 1280
Timeout: 10
Show Beginner, Expert, Guru properties.
Show Commands.
>> preview(g)
Could anyone provide any kind of advice to solve this problem?
Thank you all in advance.
1 个评论
回答(1 个)
Narvik
2024-1-25
Hi,
As per my understanding, you are not able to acquire images from my Dalsa Nano GigE camera using 'getdata' even though the camera is recognized.
One way is to use the “ignoreddroppedframes” property. For more information, refer to the following documentation link:
Although this might resolve your error, your camera could drop frames.
Another approach is to try installing a GenTL producer and GenTL support package from MATLAB. Refer to the following link for more information:
Hope this helps!
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!