NI Home
Cart Cart | Help
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Currently Being Moderated

Play Files in Windows Media Player using ActiveX in LabVIEW

VERSION 3

Created on: Sep 10, 2008 4:02 PM by G-Money - Last Modified:  Feb 16, 2009 12:54 PM by G-Money

REQUIREMENTS:
Application Software: LabVIEW Professional Development System 8.6
Driver Software: NI-DAQmx 8.8
Hardware Family: CAN
Add-on Software: LabVIEW FPGA Module 8.6
Product Category: LabWindows/CVI
Development Topic: Event-Driven Programming, File I/O
Industry: ATE/Instrumentation
Application Type: Simulation
Technology: Bluetooth

This example VI opens Windows Media Player on your computer and plays the selected file. 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 useful because I saved the example video file to this folder as well. If you know exactly where the video file is then you can reference this 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 a ton of Windows Media Player (WMP) ActiveX classes that can manipulate it in a number of ways. Hopefully you find this helpful and check out the other ActiveX classes to appreciate all you can do with WMP. This was developed in LabVIEW 8.6 and unfortunately I do not have other versions of LabVIEW available at the moment. If you don't have 8.6 then try and recreate the attached screenshot of the block diagram is your version. ActiveX classes change from one LabVIEW version to another (sometimes) so you might have to redirect the class.

untitled.JPG

 

Downloads:
Average User Rating
(1 rating)




LV_Pro LV_Pro  says:

Not all of us have moved on to 8.6

More Like This

  • Retrieving data ...