MATLAB IMAGE ACQUISITION TOOLBOX 3 User's Guide Page 128

  • Download
  • Add to my manuals
  • Print
  • Page
    / 408
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 127
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
Page view 127
1 2 ... 123 124 125 126 127 128 129 130 131 132 133 ... 407 408

Comments to this Manuals

No comments