User`s guide

videoinput
The property name and property value pairs can be in any format
supported by the
set function, i.e., parameter/value string pairs,
structures, or parameter/value cell array pairs.
To view a complete listing of video input object functions and properties,
use the
imaqhelp function.
imaqhelp videoinpu t
Remarks The toolbox chooses the first available video source object as the selected
source and specifies this video sou rce object’s name in the object’s
SelectedSourceName property. Use getselectedso urce(obj) to access
the video source object that is used for acquisition.
Examples Construct a video input object.
obj = videoinput('mat rox', 1);
Select the source to use for acquisition.
set(obj, 'Selected Sour ceName', 'input1')
View the properties for the selected v ideo s ource object.
src_obj = getselected source(obj);
get(src_obj)
Preview a stream of image frames.
preview(obj);
Acquire and display a single image frame.
frame = getsnapshot(o bj);
image(frame);
Remove video input object from memory.
delete(obj);
12-63