User`s guide

5 Connecting to Hardware
5-6
To determine which video formats an image acquisition device supports, look in the
SupportedFormats field of the DeviceInfo structure returned by the imaqhwinfo
function. To view the information for a particular device, call imaqhwinfo, specifying the
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)'
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 formats. The toolbox assigns names to the formats based on vendor-
specific terminology. If you want to specify a video format when you create an image
acquisition object, you must use one of the text strings in this cell array. See “Creating
Image Acquisition Objects” on page 5-8 for more information.
celldisp(dev_info.SupportedFormats)
ans{1} =
M_RS170
ans{2} =
M_RS170_VIA_RGB
ans{3} =
M_CCIR
ans{4} =
M_CCIR_VIA_RGB
ans{5} =