Example Code

Set Properties for Multiple VIs Programmatically

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 demonstrates how to select any VI Property that is available using property nodes and set it to a group of .VIs within the same folder.

 

Description

The VI uses "Recursive File List.VI" to first search and return the paths of every .vi in a specified folder (note that it will also use any .VI in subfolders).

 

Requirements

  • LabVIEW 2012(or compatible)

 

Steps to Implement or Execute Code

  1. Left click underneath the yellow strip of the .VI Property Node and select the properties you wish to set.
  2. Select the path of the folder with the filepath constant.
  3. Run the VI.

 

Additional Information or References

VI Snippet

 BD.png

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

 

Eden S
Applications Engineer
National Instruments UK & Ireland

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