User`s guide
wait
17-97
wait
Wait until image acquisition object stops running or logging
Syntax
wait(obj)
wait(obj,waittime)
wait(obj,waittime,state)
Description
wait(obj) blocks the MATLAB command line until the video input object obj stops
running (Running = 'off'). obj can be either a single video input object or an array
of video input objects. 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. The 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 command line until the video input object or
array of objects obj stops running or until waittime seconds have expired, whichever
comes first. By default, waittime is set to the value of the object's Timeout property.
wait(obj,waittime,state) blocks the MATLAB command line until the video 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 video input object's stop event callback function (StopFcn) might not be called
before this function returns.