Camera using the genTL interface disappears when using imaqreset
7 views (last 30 days)
Show older comments
Hello,
My pc is connected to a USB camera that I want to control through the genTL interface. I have two types of unexpected behavior and you could surely help me solve this problem:
- If the camera is connected to the PC after matlab has been launch, the camera is not detected using imaqhinfo and imaqreset does not solve this issue (as it should if I understood correctly ?) :
% Camera is not connected
>> camera_list = imaqhwinfo('gentl')
Warning: No devices were detected for the 'gentl' adaptor. For troubleshooting device
detection issues, click here.
% Now I plug the camera and wait a little bit
>> camera_list = imaqhwinfo('gentl')
Warning: No devices were detected for the 'gentl' adaptor. For troubleshooting device
detection issues, click here.
% Again the camera is not found. So I try imaqreset
>> imaqreset
>> camera_list = imaqhwinfo('gentl')
Warning: No devices were detected for the 'gentl' adaptor. For troubleshooting device
detection issues, click here.
- The second thing is that if I plug the camera, and after launch matlab, then imaqreset makes the camera disappears !
% Matlab is launched after camera connection
>> camera_list = imaqhwinfo('gentl')
camera_list =
struct with fields:
AdaptorDllName: '/home/iscat/Documents/MATLAB/SupportPackages/R2022a/toolbox/imaq/supportpackages/gentl/adaptor/glnxa64/mwgentlimaq.so'
AdaptorDllVersion: '6.6 (R2022a)'
AdaptorName: 'gentl'
DeviceIDs: {[1]}
DeviceInfo: [1×1 struct]
% the camera is detected, great !Let's not try imaqreset
>> imaqreset
>> camera_list = imaqhwinfo('gentl')
Warning: No devices were detected for the 'gentl' adaptor. For troubleshooting device
detection issues, click here.
In the end I would like to be able to connect to a camera that has been connected after Matlab start. Any ideas ?
Thanks for the help !
Additional infos : PC is running on Ubuntu, last versions of GenIcam is installed
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!