Example Code

Get Project Item Reference

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

Retrieve the ProjectItem reference of an item in your project by name.

Description

Retrieves a ProjectItem reference to an item specified by name under a specified TargetItem in the project. If a TargetItem reference is not wired to this VI, then the My Computer target under the specified Project Refnum is used instead. If multiple items with the same name exist under the specified TargetItem in the project, the reference to the first item found will be returned.

Hardware and Software Requirements

LabVIEW 2013 or compatible

Steps to Implement or Execute Code

Use this VI in your own application for obtaining a ProjectItem reference by Name.

Additional Information or References

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