User`s guide

wait
Purpose Wait until image acquisition object stops running or logging
Syntax wait(obj)
wait(obj,waittime)
wait(obj,waittime,state)
Description wait(obj) blocks the M ATLAB co mmand line until the video input
object
obj stops running (Running = 'off'). obj can be e ither a single
video input object or an array of video input o bjects. When
obj is
an array of objects, the
wait function waits until all objects in the
array stop running. If
obj is not running or is an invalid object, wait
returns immediately. T he wait function can be useful when you want to
guarantee that data is acquired before another task is performed.
wait(obj,waittime) blocks the MATLAB com mand line until the video
inputobjectorarrayofobjects
obj stops running or until waittime
seconds have expired, whichever comes first. By default, waittime is
settothevalueoftheobjects
Timeout property.
wait(obj,waittime,state) blocks the MATLAB command line until
the v ideo input object or array of objects
obj stops running or logging,
or until
waittime seconds have expired, whichever comes first. state
can be either of the following text strings. The default value is enclosed
in braces ({}).
State Description
{'running'}
Blocks until the value of the object’s Running property
is
'off'.
'logging'
Blocks until the value of the object’s Logging property
is
'off'.
Note The v ideo input object’s stop event callback function (StopFcn)
might not be called before this function returns.
12-65