Example Code

Binding Shared Variables using LabVIEW

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 example shows that you can create an enum to limit the variables that a user can use to select from.  To accomplish this, it gets the string text from the enum and inputs it into a String to Shared Variable vi 


Description
This example shows that you can create an enum to limit the variables that a user can use to select from.  To accomplish this, it gets the string text from the enum and inputs it into a String to Shared Variable vi


Requirements

Software:

  1. LabVIEW 2012(or compatible)


Steps to Implement or Execute Code

  1. Unzip the attached folder to your computer
  2. Open the VI "SharedVariableEnumBinding_LV861 2012 NIVerified.LVProj"
  3. Run the program

 

Additional Information or References
VI Snippet

1.png

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

Bryan H.

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