From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Convert folder of images to AVI

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit


  • Vision Development Module
  • LabVIEW

Code and Documents



The example demonstrates how to save a series of images as an AVI video file.



In case it is necessary to convert a series of images to AVI video file you can accomplish the task with the functions of the Vision Development Module.

The example reads every image in the specified folder and writes each image as a video frame to the AVI file.



  • LabVIEW 2012 Base Development System (or compatible)
  • Vision Development Module 2012 (or compatible)


  • No hardware is necessary to use this example VI


Steps to Implement or Execute Code

  1. Select the folder with the image files (e.g. choose the 'data' subdirectory)
  2. Select the path of the AVI video file generated from the image files
  3. Run the VI


Additional Information or References

Save Images as AVI LV2012 - Front Panel.png


Save Images as AVI LV2012 - Block Diagram.png


**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.**

National Instruments
Staff Certification Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.



I have downloaded the VI, but have not figured out how to use it properly. Would you explain in details how to specify the following contents: Image String Specifier, AVI output path, Image input folder?


I have just figured out how it works. No worries.