User`s guide

getsnapshot
17-23
Note If obj is running but not logging, and has been configured with a hardware trigger,
a timeout error will occur.
To interrupt the getsnapshot function and return control to the MATLAB command
line, issue the ^C (Ctrl+C) command.
Examples
Create a video input object.
obj = videoinput('matrox', 1);
Acquire and display a single frame of data.
frame = getsnapshot(obj);
image(frame);
Remove the video input object from memory.
delete(obj);
For an example of using getsnapshot, see the Image Acquisition Toolbox example
Acquiring a Single Image in a Loop in the Examples list at the top of the
Image Acquisition Toolbox main Documentation Center page, or open the file
demoimaq_GetSnapshot.m in the MATLAB Editor.
See Also
getdata | imaqhelp | peekdata