User`s guide
17 Functions — Alphabetical List
17-36
name, device name, video resolution, native data type, and device driver name and
version. If obj is an array of device objects, then out is a 1-by-n cell array of structures
where n is the length of obj.
out = imaqhwinfo(obj,field) returns the information in the field specified by
field for the device object obj. field can be a single field name or a cell array of field
names. out is an m-by-n cell array where m is the length of obj and n is the length of
field. You can return a list of valid field names with the imaqhwinfo(obj) syntax.
Note After you call imaqhwinfo once, hardware information is cached by the toolbox.
To force the toolbox to search for new hardware that might have been installed while
MATLAB was running, use imaqreset.
Examples
This example returns information about all the adaptors available on the system.
imaqhwinfo
ans =
InstalledAdaptors: {'matrox' 'winvideo'}
MATLABVersion: '7.4 (R2007a)'
ToolboxName: 'Image Acquisition Toolbox'
ToolboxVersion: '2.1 (R2007a)'
This example returns information about all the devices accessible through a particular
adaptor.
info = imaqhwinfo('winvideo')
info =
AdaptorDllName: [1x73 char]
AdaptorDllVersion: '2.1 (R2007a)'
AdaptorName: 'winvideo'
DeviceIDs: {[1]}
DeviceInfo: [1x1 struct]
This example returns information about a specific device accessible through a particular
adaptor. You identify the device by its device ID.