From: Patrick McChesney on
Hi all,

I'm writing a GUI to handle the image acquisition and control of 4 USB webcams simultaneously. So far Matlab has made this very easy, but now I'm running into the issue of remotely identifying each webcam through the image acquisition toolbox. The problem is that imaq does not seem to provide access to the persistent ID number of the camera. I'm pretty sure that such an ID exists because I can see an 8-digit hexadecimal number in the Windows Device Manager that seems to be unique to each camera and independent of the USB port used.

Does anyone know how to identify webcams through the Image Acquisition Toolbox or any other Matlab functionality? I have most of the other toolboxes installed as well.

Alternatively, does anyone know how the order of the imaq DeviceID allocation is determined? From my own experimentation with a couple webcams, it seems that the ordering depends on the webcams themselves, meaning that it is independent of the USB port used, even for various hub and extender configurations. Based on this, I could simply number each webcam based on the DeviceID it is normally allocated. However, the DeviceID ordering appears unrelated to the camera ID number mentioned above, so this system will not scale well with the addition of new or replacement webcams.

I hope this isn't tl;dr :) Any suggestions will be much appreciated!