Example Code

CPS Action Assistant using LabVIEW and VI Package Manager

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
  • Other

Code and Documents

Attachment

Overview
This VI demonstrates provides a way to perform batch actions on items within your active project.

 
Description
Here is a brief description of the example:

Using VI Server properties this VI uses the Project Tree and the names you specify to perform one of three actions: Find, Run, or Deploy.

Find: Performs only the locate operation and returns a reference to the specified item.

Run: This is the same as opening the VI and clicking the Run Button.

Deploy: This is the same as right clicking the item and selecting Deploy. This can automate the deployment of libraries or VIs which must be present on the target before the main VI is executed.

This example is designed to be used as a starting point. If you add functionality feel free to update and I will review the changes and then publish it.

 

Requirements

  1. LabVIEW 2012 (or compatible)
  2. VI Package Manager 


Steps to Implement or Execute Code

  1. Install VI Package
  2. Open Functions pallet from VI Package Manager.
  3. Place CPS Action Assistant.vi on the block diagram of a My Computer targeted VI.
  4. Specify Target VI Names and the desired Action.
  5. Run your VI.

 

Additional Images

Demonstration (VIs moved to MyComputer for Demonstration but will work regardless of Target)

After.PNG

Find

Find.PNG

Run

Run.PNG

Deploy

Deploy.PNG

A Look Inside

CPS Action Assistant.png

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

 

Alex D
Systems Engineer
Academic Research
National Instruments

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