User`s guide
5 Connecting to Hardware
5-4
AdaptorDllName: [1x73 char]
AdaptorDllVersion: '2.1 (R2007a)'
AdaptorName: 'matrox'
DeviceIDs: {[1]}
DeviceInfo: [1x1 struct]
The fields in the structure returned by imaqhwinfo provide the following information.
Field Description
AdaptorDllName Text string that identifies the name of the adaptor dynamic
link library (DLL)
AdaptorDllVersion Information about the version of the adaptor DLL
AdaptorName Name of the adaptor
DeviceIDs Cell array containing the device IDs of all the devices
accessible through this adaptor
DeviceInfo Array of device information structures. See “Getting More
Information About a Particular Device” on page 5-4 for
more information.
Getting More Information About a Particular Device
If an adaptor provides access to multiple devices, you might need to find out more
information about the devices before you can select a device ID. The DeviceInfo field
is an array of device information structures. Each device information structure contains
detailed information about a particular device available through the adaptor.
To view the information for a particular device, you can use the device ID as a reference
into the DeviceInfo structure array. Call imaqhwinfo again, this time specifying a
device ID as an argument.
dev_info = imaqhwinfo('matrox',1)
dev_info =
DefaultFormat: 'M_RS170'
DeviceFileSupported: 1
DeviceName: 'Orion'
DeviceID: 1
VideoInputConstructor: 'videoinput('matrox', 1)'
VideoDeviceConstructor: 'imaq.VideoDevice('matrox', 1)'