Example Code

Extract Values within Bounds from Monotonically Increasing 1D 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

Download All

Overview
This VI demonstrates how to extract a subset of values within a specificed range from a 1D array of monotonically increasing values. 


Description
This VI extracts a subset of values within a user specificed range from a 1D array of monotonically increasing values.  The upper and lower bounds do not need to be values in the array.
Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Set the Upper Limit, Lower Limit, and Array Size.
  2. Run the VI.
  3. See the extracted array.

 

Additional Information or References
VI Block Diagram

 1.png

 

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

 

 

James K.
National Instruments
Applications Engineer

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