Example Code

AVI playback with frame seek

Code and Documents

Attachment

Download All

Overview

This VI allows you to playback an AVI file and provides additional functionality to slow down playback, select a specific frame, and advance frame-by-frame.

Description

This code uses an event driven state machine to implement an AVI viewer in LabVIEW.


Steps to Implement or Execute Code

  1. Run the code
  2. Select an AVI file to view
  3. Use the Play/Pause/Previous Frame/Next Frame/Slow buttons to play through the AVI file.
  4. The 'Delay' control allows the speed of the slow playback to be modified
  5. The 'Current Frame' control can be changed to select a specific frame.

Requirements

Software

LabVIEW, valid AVI file.

Hardware

none

front panel.png

code.png


National Instruments
Staff Certification Engineer

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

Contributors