Example Code

Search 2D Array

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 polymorphic VI allows you to search 2D arrays for a given element and will return an array of coordinates the element has been found at.


Description
This code include many Vis, it currently supports: Boolean, String, Double, I16, I32, U16, U32

But can easily be extended to support smaller numeric types (simply open another, change the representation of the array element and the single element and save as a new one, then open the polymorphic VI and add the new instance).

 


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Open VI

 

Additional Information or References
VI Block Diagram

 Block Diagram.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.

Comments
powerc
Member
Member
on

Hii

I have labview 2009 , can you please compile the  VI  and up it again ??

LaThoS
Member
Member
on

Done

Meehalych
Member
Member
on

There is a mistake on VI Block Diagram attached.

While Loop cycle would not stop.

Boolean signal for Conditional terminal should be taken before Not operator.

It is made correct in VI attached.