To download NI software, including the products shown below, visit ni.com/downloads.
Overview
The example demonstrates how to save acquired images to a AVI video.
Description
The example is based upon the standard Low-Level Grab Async example from the LabVIEW example finder.
The image acquisition is asynchronous since the IMAQdx Configure Acquisition is configured to use multiple image buffers and the image buffer is read with IMAQdx Get Image when an event has been triggered. To accomplish this a dynamic event has been created that triggers whenever the IMAQdx driver reports that a new image has been recorded.
The acquired images are then recorded into a AVI video file. AVI is a container format that can use different codecs with different characteristics regarding encoding and decoding speed as well as compression efficiency. Not every Windows system features the same set of possible video codecs, therefore the IMAQ AVI2 Get Codec Names function reads the available codecs so the user can decide which codec to use. For simplicity the example uses the first available codec.
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
KnowledgeBase: What Is the Difference Between NI-IMAQ, NI-IMAQdx, and NI-IMAQ I/O?
http://digital.ni.com/public.nsf/allkb/0564022DAFF
**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.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.