Example Programs

Showing results for 
Search instead for 
Did you mean: 

NI-IMAQdx Grab and Save to AVI


This example demonstrates how to Grab and Save to an AVI format by using IMAQdx.


You need to specify the frame rate that your camera will be acquiring at, as this will adjust the playback rate of the AVI video produced. As the while loop iterates, it adds every grabbed image to the AVI video as single frames, once your acquisition is complete the AVI file will playback at the pre-set frame rate.

Steps to Implement or Execute Code

  1. Select your camera from the Session In control on the Front Panel
  2. Set your desired Frames Per Second
  3. Run the VI
  4. Specify a path to save the AVI file
  5. Press stop when you are finished with your acquisition



LabVIEW 8.6 "or compatible"

NI Vision Acquisition Software 8.6 "or compatible"


Compatible camera

Please see the following link to determine if your camera is supported

VI Snippet


Additional Information or References

**This document has been updated to meet the current required format for the NI Code Exchange. For more details visit this discussion thread**

Thank You
Eric Reid
National Instruments
Motion R&D
Todd S.
NI Employee

Great stuff!!!

Todd S.
LabVIEW Community Manager
National Instruments
Member Qia.sky

But how can I add sound or audio acquired by microphone to the avi file, then I can play the avi with sound?

Virry Test & Control
LabVIEW Certified Developer
Member Julio_HDT

Hi, its so cool. but any body knows how to record in others formats? because a video 1 min = 200 megabits