Example Code

Activating and Running a Slideshow in PowerPoint from 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

Code and Documents

Attachment

 Overview

This VI opens a Microsoft PowerPoint presentation and advances through each slide at the rate the user specify

 

Description

This VI uses ActiveX to open a Power Point presentation specified by the user in any .pp** file path. Once the Power Point is open, it will change slides at the rate specified by the user, in the Rate (seconds) control.

The VI Loops through each slide until an error occurs.An error occurs when the slide show finishes.Then the VI clears the error, -2147467259 (which is expected), closes all open references and handles errors.

 

Requirements

  • LabVIEW 2012 (or compatible)
  • Microsoft Office

Steps to Implement or Execute Code

  1. Select a .PPT file
  2. Run the VI
  3. Press the Stop button to abort the presentation

Notice that you can select only .PPT files

 

Additional Information or References
VI Block Diagram

 

 

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

Chris Van Horn
Applications Engineer

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

Comments
Dhana_LV
Member
Member
on

good work...well done..