Example Code

Using OpenG Toolkit for 2D Array Operations 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

    Driver

  • Other

Code and Documents

Attachment

Download All

Overview

This code shows how the OpenG Toolkit allows you to sort a 2D array using the modified

 

Description

After generating a 2D array of random values, this VI sorts the array based on a column or row specified by the user.

 

Requirements

  • LabVIEW 2013 (or compatible)
  • OpenG Toolkit

 

Steps to Implement or Execute Code

  1. Download the attached VI.
  2. Set the inputs to generate a 2D array with the desired sorting options
  3. Run 2D Array Sort OpenG 2013 NIVerified.vi
  4. Modify code to allow for sorting of your own 2D array. 

 

Additional Information or References

VI Block Diagram

 2-287.png

 

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

 

Applications Engineer
National Instruments

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