User`s guide

13 Using the Matrox Interface
13-8
2
Use the matroxcam function to create the object and connect it to the frame grabber.
If you want to use the second frame grabber in the list, the Solios XCL at digitizer
1, use a 2 as the index number, since it is the second board on the list. The second
argument must be the name and path of your DCF file, entered as a string.
3
Preview the image from the camera.
preview(m)
4
You can leave the Preview window open, or close it any time. To close the preview:
closePreview(m)
5
Acquire a single image using the snapshot function, and assign it to the variable
img
img = snapshot(m);
6
Display the acquired image.
imshow(img)
7
Clean up by clearing the object.
clear m
Configuring Hardware Triggering
If your DCF file is configured for hardware triggering, then you must provide the trigger
to acquire images. To do that, call the snapshot function as you normally would, as
shown in step 5, and then perform the hardware trigger to acquire the frame.
Note that when you call the snapshot function with hardware triggering set, it will not
timeout as it normally would. Therefore, the MATLAB command-line will be blocked
until you perform the hardware trigger.