User`s guide

Getting Hardware Inform ation
Image acquisition devices typically support multiple v ideo formats. You can
specify the video format when you create the video input object to represent
the connection to the device. See “Creating Image Acquisition Objects” on
page 4-9 for more information.
Note Specifying the video format is optional; the toolbox u ses one of the
supported formats as the default.
Todeterminewhichvideoformatsanimage acquisition device supports, look
in the
SupportedFormats field of the D evi ceInfo structure returned by the
imaqhwinfo function. To vie w the in f ormation for a p arti cu lar device, call
imaqhwinfo, specifying the device ID as an argument.
dev_info = imaqhwinfo ('matrox',1)
dev_info =
DefaultFormat: 'M_ RS17 0'
DeviceFileSupported: 1
DeviceName: 'Orion '
DeviceID: 1
ObjectConstructor: 'videoinput('matrox', 1 )'
SupportedFormats: {1x10 cell}
The DefaultFormat field lists the default format selected by the toolbox. The
SupportedFormats field is a cell array containing text strings that identify
all the supported video fo rmats. The toolbox assigns names to the formats
based on vendor-specific terminology. If y ou want to specify a v ideo for mat
when you create an image acquisition object, yo u must use one of the text
strings in this cell array. See “Creating Image Acquisition Objects” on page
4-9 for more information.
celldisp(dev_info.SupportedFormat s)
ans{1} =
M_RS170
ans{2} =
4-7