User`s guide

13 Using the Matrox Interface
13-6
Acquire Images from Matrox Frame Grabbers
In this section...
“Create the matroxcam Object” on page 13-6
“Acquire One Image Frame from a Matrox Frame Grabber” on page 13-7
Create the matroxcam Object
To acquire images from a Matrox frame grabber, use the matroxcam function to create
a Matrox object. Specify a frame grabber by the list order, using an index number, as the
first input argument. The second input argument must be the name and fully qualified
path of your DCF file.
Note that you cannot create more than one object connected to the same device, and
trying to do that generates an error.
After you create the object, you can preview and acquire images.
Note: The Matrox support requires that you download and install the necessary files via
the Support Package Installer. The Matrox Hardware support package installs the files
for both the matrox adaptor for the videoinput object and the matroxcam object. For
more information, see “Installing the Support Packages for Image Acquisition Toolbox
Adaptors”.
Create a matroxcam Object Using Device Number as an Index
Use the matroxcam function with an index as the first input argument to create the
object corresponding to that index and connect it to that frame grabber. The index
corresponds to the order of boards in the cell array returned by matroxlist when you
have multiple frame grabbers connected. If you only have one frame grabber, you must
use a 1 as the input argument.
Use the matroxlist function to ensure that MATLAB is discovering your frame
grabbers.
matroxlist
ans =