Example Code

Access Multicolumn Listbox String using Event Structure in 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

Demonstrates how to access multicolumn listbox string using event structure.


Description

The example generates a 2D array of random numbers in string data type and writes it  into the listbox using Item Names property node. An Event Structure is used to wait for user clicking. Once a mouse click detected, coordinates of the click is converted into row and column format and the information is read using Index Array.

 

Requirements

LabVIEW 2013 (or compatible)

 

Steps to Implement or Execute Code

  1. Run the program
  2. A set of random numbers data will be generated and displayed in a multicolumn listbox
  3. Click on any number inside the list box
  4. The number will be displayed
  5. Click "Stop Button" to stop program

 

Additional Information or Resources

VI Block Diagram

 

BD.png

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

Applications Engineer

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