To download NI software, including the products shown below, visit ni.com/downloads.
Overview
Filter array elements between a specified minimum and maximum value.
Description
This example will search through an array of randomly generated values and pull out the values that are within a user-defined range. A new array is created with the values that are within the specified range and displays them on the front panel.
Requirements
Additional Information or References
VI Snippet
**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.
You can get rid of the boolean logic by using the "in range and coerce" function. Also I dont think initalizing the array, is efficient in this case.