User`s guide
Basic Image Acquisition Procedure
Note Video source object pro perties are d ev ice specific. The list o f properties
supported by the device connected to your system might differ from the list
showninthisexample.
General Settings:
Parent = [1x1 videoinput]
Selected = on
SourceName = input1
Tag =
Type = videosource
Device Specific Prop erties:
FrameRate = 15
Gain = 2048
Shutter = 2715
Setting Object Properties
To set the value of a video input object property o r a video source object
property, you can use the
set function or you can reference the object property
as you w ou ld a f ield in a structu re, using dot notation.
Some properties are read only; you cannot set their values. These properties
typically provide information about the state of the object. Other properties
become read only when the object is running. To view a list of all the properties
you can set, use the
set function, specifying the object as the only argument.
To implement continuous image acquisition, the example sets the
TriggerRepeat property to Inf. To set this property using the set function,
enter this code at the MATLAB prompt.
set(vid,'TriggerRepeat',Inf);
To help the application keep up with the incoming video stream while
processing data, the example sets the
FrameGrabInterval property to 5.This
specifies that the obje ct acquire every fifth fram e in the video stream. (You
might need to experiment with the value of the
FrameGrabInterval property
to find a value that provides the best response with your image acqu isi tion
setup.) This examp le shows h ow you ca n set the value of an obje ct property
1-15