Example Code

Pull array subset based on threshold

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

Coding that exemplifies how to pull values that are within a threshold, and the values that come after the first one that meets the mentioned threshold.

 

Description

This code consists on analyzing the values of an array to verify if each value is less or equal to a threshold value. Also, we will be able to take a subset of the values that come after the first number that meets the condition. Both analyses are commonly required.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code
1. Set values for the input array
2. Configure the desired threshold
3. Run the VI


Additional Information or References

Snippet.png

Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com

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