wait
Wait until image acquisition object stops running or logging
Description
wait(
blocks the MATLAB® command line until the videoinput
)videoinput
object stops running
(Running
= "off"
). Use the wait
function to guarantee data acquisition before performing another task.
wait(
blocks the MATLAB command line until the videoinput
,waitTime
)videoinput
object or array of objects
videoinput
stops running or until waittime
seconds
expire, whichever comes first. By default, the function sets the waittime
value to the value of the Timeout
property of the object.
wait(
blocks the MATLAB command line until the video input object or array of objects
videoinput
,waitTime
,state
)videoinput
stops running or logging, or until
waittime
seconds have expired, whichever comes first.
Note
The stop event callback function (StopFcn
) of the object might
not be called before this function executes.
An image acquisition object stops running under one of these conditions:
Issuance of the
stop
function.Acquisition of the requested number of frames. Acquisition is complete when
FramesAcquired
=FramesPerTrigger
* (TriggerRepeat
+ 1)FramesAcquired
,FramesPerTrigger
, andTriggerRepeat
are properties of thevideoinput
object.Occurrence of a run-time error.
Expiration of the
Timeout
value of the object.
Examples
Input Arguments
Version History
Introduced before R2006a