User`s guide

Getting Hardware Information
5-3
acquisition equipment and for particular classes of image acquisition devices. For the
latest information about supported hardware, visit the Image Acquisition Toolbox
product page at the MathWorks Web site (www.mathworks.com/products/imaq).
To determine which adaptors are available on your system, call the imaqhwinfo
function. The imaqhwinfo function returns information about the toolbox software and
lists the adaptors available on the system in the InstalledAdaptors field. In this
example, there are two adaptors available on the system.
imaqhwinfo
ans =
InstalledAdaptors: {'matrox' 'winvideo'}
MATLABVersion: '7.4 (R2007a)'
ToolboxName: 'Image Acquisition Toolbox'
ToolboxVersion: '2.1 (R2007a)'
Note While every adaptor supported by the Image Acquisition Toolbox software is
installed with the toolbox, imaqhwinfo lists only adaptors in the InstalledAdaptors
field that are loadable. That is, the device drivers required by the vendor are installed
on the system. Note, however, that inclusion in the InstalledAdaptors field does not
necessarily mean that an adaptor is connected to a device.
Determining the Device ID
The adaptor assigns a unique number to each device with which it can communicate. The
adaptor assigns the first device it detects the device ID 1, the second it detects the device
ID 2, and so on.
To find the device ID of a particular image acquisition device, call the imaqhwinfo
function, specifying the name of the adaptor as the only argument. When called with this
syntax, imaqhwinfo returns a structure containing information about all the devices
available through the specified adaptor.
In this example, the imaqhwinfo function returns information about all the devices
available through the Matrox adaptor.
info = imaqhwinfo('matrox');
info =