Example Code

Simple Array "Find" Function 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

Code and Documents

Attachment

Download All

 

Overview

This is a very simple VI that compares an array with a value and outputs an array based on the desired operation.

 

Description

This VI allows the user search and find the values of an array that comply with the search parameters specified by the user. Using the enum control Operator with the possible values of "Greater Than", "Less Than", "Equal To" or "Not Equal To"; and using as comparing reference the value of the Compare Value control.

 

Requirements

LabVIEW Base Development System.

 

Steps to Implement or Execute Code
1. Fill the Array In with the array you would like to analyze
2. Set the value you would like to compare to
3. Select the operation to perform
4. Run the VI

 

Additional Information or References

 Snippet 7224.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.