User`s guide
1 Getting Started
Determining the Adaptor Name
To determine the name of the adaptor, enter the imaqhwinfo function at the
MATLAB prompt without any arguments.
imaqhwinfo
ans =
InstalledAdaptors: {'dcam' 'winvideo'}
MATLABVersion: '7 .4 (R2007a)'
ToolboxName: 'Imag e Acquisition Toolb ox'
ToolboxVersion: '2 .1 (R2007a)'
In the data returned by imaqhwinfo,theI nsta lledAdaptors field lists the
adaptors that are available on your computer. In this example,
imaqhwinfo
found two adaptors available on the computer: 'dcam' and ' winvideo'.The
listing on your computer might contain only one adaptor name. Select the
adaptor name that provides access to your image acquisition device. For more
information, see “Determining the Device Ad ap tor Nam e ” on p ag e 4-3.
Determining the Device ID
To find the device ID o f a particular image acquisition device, enter the
imaqhwinfo function at the MATLAB prompt, specifying the nam e of the
adaptor as the only argument. (You found the a daptor name in the first call to
imaqhwinfo, described in “Determining the Adaptor N ame” on page 1-8.) In
the data returned, the
DeviceIDs field is a cell array containing the device
IDs of all th e dev ice s access ib le throu gh the speci fied ad ap tor.
Note This example uses the DCAM adaptor. You should substitute the name
of the adaptor you would like to use.
info = imaqhwinfo('dc am')
info =
AdaptorDllName: [1 x77 char]
AdaptorDllVersion: '2.1 (R2007a)'
AdaptorName: 'dcam '
DeviceIDs: {[1]}
1-8