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

We appreciate your patience as we improve our online experience.

Example Code

AVI Functional Global Variable Using LabVIEW

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 ni.com/downloads.

    Software

  • LabVIEW
  • Other

Code and Documents

Attachment

Overview

This is a functional global variable intended to be used as a subVI intended to be used for multiple AVI files at the same time.


Description
One file should be closed before creating or opening another AVI file with this subVI. It has the functionallity of all the AVI VIs.

 pecifically:

IMAQ AVI Create (AVI Path is a required input)

IMAQ AVI Write Frame (Image is a required input)

IMAQ AVI Open (AVI Path is a required input)

IMAQ AVI Get Info

IMAQ AVI Read Frame (Image and Frame Number are required inputs)

IMAQ AVI Close

IMAQ AVI Get Filter Names

Optional inputs for Create, Write and Read are bundled together in the AVI Inputs input. For more information on the specific programming and inputs and outputs see the help for the needed VIs.


Requirements

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


Steps to Implement or Execute Code

  • Select the path of “The Application of the AVI Function Global Variable 2012 NIVerified.vi”.
  • Run the program

 

Additional Information or References
VI Snippet

3-339.png

**This document has been updated to meet the current required format for the NI Code Exchange.**

Vince M
Applications Engineer

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