User`s guide

5 Connecting to Hardware
5-12
In this example, each of the text strings is a video format supported by a Matrox device.
info = imaqhwinfo('matrox');
info.DeviceInfo.SupportedFormats
ans =
Columns 1 through 4
'M_RS170' 'M_RS170_VIA_RGB' 'M_CCIR' 'M_CCIR_VIA_RGB'
Columns 5 through 8
'M_NTSC' 'M_NTSC_RGB' 'M_NTSC_YC' 'M_PAL'
Columns 9 through 10
'M_PAL_RGB' 'M_PAL_YC'
For Matrox devices, the toolbox uses the RS170 format as the default. (To find out which
is the default video format, look in the DefaultFormat field of the device information
structure returned by the imaqhwinfo function.)
Note For Matrox devices, the M_NTSC_RGB format string represents a component video
format.
This example creates a video input object, specifying a color video format.
vid2 = videoinput('matrox', 1,'M_NTSC_RGB');
Using Device Configuration Files (Camera Files)
For some devices, you can use a device configuration file, also known as a camera file, to
specify the video format as well as other configuration settings. Image acquisition device
vendors supply these device configuration files.
Note The toolbox ignores hardware trigger configurations included in a device
configuration file. To configure a hardware trigger, you must use the toolbox
triggerconfig function. See “Using a Hardware Trigger” on page 6-14 for more
information.