| Image Acquisition Toolbox | ![]() |
Waiting for an Acquisition to Finish
When you trigger an acquisition, control returns to the command line before data logging is complete. In some cases, you might want to delay further processing until the number of frames you requested has been logged. To block the command line until logging is finished, use the wait function.
The following example illustrates the wait function.
imaqhwinfo function to get the object constructor for your image acquisition device and substitute that syntax for the following code.
wait blocks until all the specified frames become available, configure an acquisition large enough to produce a noticeable duration.
start function to start the image acquisition object.
start function returns control to the command line immediately but the object continues logging the data to the memory buffer.
start function returns, call the wait function.
wait function returns control to the command line when the value of the video input object's Running property changes from 'on' to 'off'.
| Specifying Multiple Triggers | Managing Memory Usage | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2010 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |