Plugging in USB cameras with Image Acquisition Toolbox
2 次查看(过去 30 天)
显示 更早的评论
I am running a Simulink diagram where I occasionally have 2 cameras acquiring images. If I plug in the 2nd camera after I start Matlab or open the diagram, the blocks do not acknowledge that the 2nd camera is there. Can I somehow refresh the available cameras? Thanks.
0 个评论
回答(1 个)
Shankar Subramanian
2012-1-16
Hi John,
The device list will not update instantaneously in Simulink mask after you plug in the new camera. Basically the Simulink blocks populate the device name at the point the library is loaded and use the same list thereafter. When you plugin a new device, you have to reload the Image Acquisition Simulink Library. You have to close Simulink/all open models, clear classes and call imaqreset.
bdclose all % To close all open Simulink models.
clear classes
imaqreset % Reset hardware information and unload adaptor libraries
Now open Image Acquisition Simulink library either by launching simulink or calling imaqlib from command line.
Thanks
Shankar
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!