O'Reilly logo

LabVIEW Graphical Programming Cookbook by Yik Yang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using ActiveX

ActiveX allows information sharing among different applications. In this example, we will demonstrate how to use ActiveX in LabVIEW to access the functionality of the Microsoft Excel application. In this recipe, we will create a LabVIEW program that would create a workbook, and enter a value in a user specified cell through ActiveX.

How to do it...

We will create a program that works with Excel through ActiveX.

  1. Create the state machine in the following block diagram. It starts in the User state. In that state, when the Run Button is clicked on, the program would go to the Open Excel, Add Workbook, or Get Worksheet state depending on what excel reference is available.
  2. The next state is "Open Excel". It opens the excel application and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required