User`s guide

Basic Image Acquisition Procedure
DeviceInfo: [1x1 stru ct]
Determining the Supported Video Formats
Todeterminewhichvideoformatsanimage acquisition device supports, look
in the
DeviceInfo field of the data returned by imaqhwinfo.TheDeviceI nfo
field is a structure array where each structure provides information about a
particular device. To view the device in formation for a particular device, you
can use the device ID as a reference into the structure array. Alternatively,
you can view the information for a particular device by calling the
imaqhwinfo
function, specifying the adaptor name and device ID as arguments.
To get the list of the video formats supported by a device, lo ok at
SupportedFormats field in the device information structure. The
SupportedFormats field is a cell array of strings where each string is the
name of a video form at supported b y the device. For more information, see
“Determining Supported Video Formats” on page 4-6.
dev_info = imaqhwinfo ('dcam',1)
dev_info =
DefaultFormat: 'F7 _Y8_ 1024x768'
DeviceFileSupported: 0
DeviceName: 'XCD-X 700 1.0 5'
DeviceID: 1
ObjectConstructor: 'videoinput('dcam', 1)'
SupportedFormats: {'F7_Y8_1024x768' 'Y8_1024x768'}
Step 3: Create a Video Input Object
In this step you create the video i nput object that the toolbox uses to represent
the conne ction between MATLAB a nd an image acquisition device. Using the
properties of a video input o bject, you can control many aspects of the image
acquisition process. For more information about image acquisition objects, see
Chapter 4, “Connecting to H ardware”.
To create a video input object, u se the
videoinput function at the MATLAB
prompt. The
DeviceInfo structure returned by the imaqhwinfo function
contains the default
videoinput function syntax for a device in the
1-9