The example demonstrates how to perform a buffered acquisition and write frames to a AVI file.
Description This example demonstrates a low-level IMAQdx acquisition that uses a configurable number of buffers for asynchronous operation. The image frames are subsequently saved to a AVI file. Since the low-level function of IMAQdx already features buffering no additional buffering is required.
LabVIEW 2012 Base Development System (or compatible)
Vision Development Module 2012 (or compatible)
NI-IMAQdx 4.0 (or compatible)
NI-IMAQdx compatible hardware
Steps to Implement or Execute Code
Select a new or existing file to write the AVI file to
Select a camera and adjust the 'Frames Per Second' setting to match the camera
Run the VI
Additional Information or References
Remark: A previous version of this example used a queue to store images to use a producer consumer pattern. The problem with this approach is mainly that not the images themselves are buffered but merely the references are buffered in the queue. So in case the image buffer is overwritten in the maintime, the program can not detect that and therefore produces a false sense of security. Since the low-level IMAQdx functions already offer buffered acquisition no producer consumer pattern is necessary.
**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text 'NIVerified'. Read here for more information about the new Example Guidelines and Community Platform.**
Paolo F. National Instruments Applications Engineer