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

Updating controls with an action engine

A complex application could consist of SubVIs that are multiple layers deep. It would be difficult for such a SubVI to update an indicator of the main VI. In this recipe, we will demonstrate an example to update controls of a main VI from a SubVI through an action engine.

How to do it…

Let's create the action engine. We will start with the Initialize command.

  1. Create the action engine as shown in the following screenshot. The first command is Initialize. It obtains the reference of the VI with controls which we would like to update, obtains its panel reference, and the references of all the controls on the front panel of the VI.
  2. Create the next command "Update Value" of the action engine, as shown in the following ...

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