Example Code

Programmatically Set Path of Library to Deploy in Development/Executable

Code and Documents

Attachment

Overview

This VI allows the user to set the path of an .lvlib for deployment in an executable.

Description

This VI builds the path to a library so you can programmatically deploy it. It makes use of the Application Kind property node to check if the VI is running in development or as an executable and changes the path accordingly.

Steps to Implement or Execute Code

  1. Download the Deploy My Library_LV86.vi
  2. Configure the Static Library File Path (for Development) control on the front panel
  3. Run the example VI
  4. You will now be able to see the Application Kind, IP Address, and the Library Path Used with the indicators on the front panel

Requirements to Run

Software

LabVIEW 8.6 or later

Hardware

N/A

Additional Images

Block Diagram

Programmatically set path.png

Caveats and Additional Notes

There are a few things you need to have set in the exe build specifications:

Be sure include the Library as an always include source file.

Set it to go in the support directory on the source file setting page. You can preview how your file structure will be organized in the preview window.

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

Comments
jordankuehn
Member
Member
on

The Conditional Diagram Disable Structure can provide the same functionality without the additional property node.

Alternative Solution.png

The Colex Group
Lead Software Engineer
Certified LabVIEW Developer
Contributors