Overview This example VI opens Windows Media Player on your computer and plays a selected file.
Description You can use any video file that is supported by Windows Media Player (.mpa, .mp2, .mp3, .avi, .wma, etc..). The Strip Path VI finds the location of the current VI. This is particularly useful if the example file is saved to this folder as well. If not, then the video file path can be referenced directly into the constant. The Build Path VI adds the current folder filepath to the video name so that the full filepath can be used to play the video. There are many Windows Media Player (WMP) ActiveX classes that can manipulate it in a number of ways.
LabVIEW 2012 (or compatible)
Windows Media Player
Steps to Implement or Execute Code
Unzip the attached folder to your computer
Open the VI "Windows Media Player.vi"
Run the program
Additional Information or References VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**
Grant H. National Instruments LabVIEW Product Marketing Manager