Indicate whether video source object will be used for acquisition
Selected property indicates if the video
source object will be used for acquisition. You select a video source
object by specifying its name as the value of the video input object's
The video input object
Source property is an array
of all the video source objects associated with the video input object.
video source object is selected. If the value is
the video source object is not selected.
A video source is defined to be a collection of one or more physical data sources that are treated as a single entity. For example, hardware supporting multiple RGB sources, each of which is made up of three physical connections (red, green, and blue), is treated as a single video source object.
Default value is enclosed in braces (
Create an image acquisition object.
vid = videoinput('winvideo');
Determine the currently selected video source object.
vid.SelectedSourceName ans = input1
Retrieve the currently selected video source object.
src = getselectedsource(vid);
src.SourceName ans = input1 src.Selected ans = on