ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example VI creates a Sub-Array based on whether or not values are above or below a threshold.
Description
10 random doubles are generated and then compared to a user-defined threshold. The user picks if the values must be above or below. Then a sub-array is built based on wether or not the values are above or below the threshold, based on user input. Shift reigsters are used to store the sub-array as it builds. Before the first loop, the array is initialized. The array either stays the same or adds a new value as the loop iterates.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Block Diagram
**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.