In previous versions of Matlab (for instance 2013b) I was able to read the serial number of my gige camera using the following code:
vid = videoinput('gige', 1, 'Mono8');
src = getselectedsource(vid);
For an AVT Prosilica camera this would give me a string like this:
Where the last five digits (x's) are the unique device serial number.
However, the "DeviceID" property of the source does not seem to be exposed in Matlab 2015a.
I need this information to know which physical camera I'm connected to when I have multiple cameras connected to the same computer because the "DeviceID" (an integer, usually 1, 2, etc) returned by "imaqhwinfo" seems to be arbitrarily assigned based on the order in which the cameras are turned on.
Is there any other way to access the unique device serial number of the camera from within Matlab? Alternatively, being able to access the IP address of the camera would work as well.