Example Code

Create 2D Array Subset based on values in the first row

Code and Documents

Attachment

Overview
This example VI shows a way to create a subarray of a 2D array which consists only of columns that fall within the boundaries that you set.

 


Description
This VI uses some example data in a 2D array and manipulates it so that you can create a subarray which consists only of columns that fall within the boundaries that you set. An example of when this could be of use is when storing data in an array where the first row represents the time domain and all other rows are the data associated with each time. You may only want to see data that has a time value of 3.X seconds or similar.

 


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Download the attached folder to your computer
  2. Open the VI "Sort 2D array By First Row 2012 NIVerified.vi"
  3. Input the "Searching Number"
  4. Run the program

 

Additional Information or References
VI Snippet

 VI Snippet.png

 

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

 

David B
Applications Engineer
National Instruments UK

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