User`s guide
5 Acqu iring Image Data
your image acquisition device and substitute that syntax for the following
code.
vid = videoinput('win video',1);
Ve rify that the o bject has not acquired any frames.
get(vid,'FramesAcquired')
ans =
0
2 Configure properties — S et the video input objec t’s TriggerType
property to 'Ma nua l'. To set the values of certain trigger properties,
including the
TriggerType property, you must use the triggercon fig
function. S e e “Setting the Values of Trigger Propertie s” on page 5-6 for
more information.
triggerconfig(vid, 'Manual')
ThisexamplealsosetsthevalueoftheFramesPerTrigge r property to 5.
(The default is 10 frames per trigger.)
set(vid,'FramesPerTrigger',5)
3 Start the image acquisition object —Callthestart function to start
the image acquisition object.
start(vid);
The video object is now running but not logging. With manual triggers, the
video stream begins when the object starts but no frames are acquired
until the trigger executes.
isrunning(vid)
ans =
1
islogging(vid)
ans =
5-14