Example Code

Use a ListBox as a Selector for an Array of Strings

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 like a list of tables from a database query, and want to select a specific component by seeing the word and double clicking it the will show at the indicator.

This VI simply selects the content of the listbox and passes it out as a string.

 

Description
This example can add into main VI and show the selected item from the datalist.

 

Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

1.Copy this VI to main VI.

  1. Run the VI,select double click on the component form the listbox.
  2. Indicator will show the component selected.

 

Additional Information or References
VI Block Diagram

 

 1.png

 

 

 

 

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

 

Chris Bakker
SET Americas
CEO

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