User`s guide

wait
An image a cquisition object stops running or logging when one of the
following conditions is met:
The
stop function is issued.
The requested number of frames is acquired. This occurs when
FramesAcquired = Fram esPerTrigger * (Trigger Repeat + 1)
where F ramesAcquired, FramesPerTrig ger,andTriggerRepeat are
properties of the video input object.
A run-time error occurs.
The object’s
Timeout value is reached.
Examples Create a video input o bject.
vid = videoinput('win video');
Specify an acquisition that should take several seconds. The example
sets the
FramesPerTrigger property to 300.
vid.FramesPerTrigger = 300;
Start the object. Because it is configured with an immediate trigger (the
default), acquisition begins when the objectisstarted. Theexample
calls the
wait function after calling the start function. Notice how wait
blocks the MATLAB command line until the acquisition is complete.
start(vid), wait(v id);
See Also imaqhelp, start, s top, trigger, propinfo
12-66