Example Code

Graphically Select Specific Values from a 2D Array

Code and Documents

Attachment

Overview

This example project demonstrates the use of For Loops to output the values you selected as a 1D or 2D array.

 

Description

his example shows how to output the values you selected as a 1D array. The 1D array will output in the same order as if you were reading the booleans like a page (that is, left-to-right, then top-to-bottom). You can change this order with array operations on both the boolean array and the data array.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Download the attached folder to your computer
  2. Open the "Graphically Select Values from 2D Array - Output as 1D Array 2012 NIVerified.vi" or "Graphically Select Values from 2D Array - Output as 2D Array 2012 NIVerified.vi"
  3. Run the program

 

Additional Information or References
VI Snippet of "Graphically Select Values from 2D Array - Output as 1D Array 2012 NIVerified.vi"

Block Diagram.PNG

 

VI Snippet of "Graphically Select Values from 2D Array - Output as 2D Array 2012 NIVerified.vi"

Block Diagram.PNG

 

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

 

Colden

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