Example Code

Save Network VI to Local Path then Run with VI 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
The example will programmatically locate a VI from a network location and save it to a specified location before running.

Description:
The user chooses a file path to find a VI. They also select a new save location for the VI, which then runs from that new location and closes itself when the target VI starts. This is a fairly focused example but the concepts should be highly portable to other applications, and it's a nice example of how to use VI references to the current VI and external VIs to do many different things

Steps to Implement or Execute Code:
To implement this example:

  1. Configure the defined controls presented
  2. Run the VI
  3. (Optional) Turn on the Highlight Execution to see the flow of the VI


To execute this example:

  1. Install the required software
  2. Open the VI and refer the Implement Steps


Requirements
Software
LabVIEW 2012 or compatible

Hardware
-

 

 

fp.PNG

 

bd.PNG

 

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

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