Example Code

Search & Delete in 2D Array using 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

This examples searches a numeric 2D array for an element and deletes it from the rows.

 

Description

This example loops on all the element in the 2D array and if a match is found it is deleted from the array

 

Requirements

LabVIEW Base Development System 2012 or compatible


Steps to Implement or Execute Code

  1. Enter the values in the Input Array
  2. Enter the Search Element
  3. Set Delete All occurrences of the element
  4. Run the VI

Additional Information or References

VI Block Diagram

 3249.PNG

 

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

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