Example Code

Compare Values between Maximum and Minimum 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

 

Overview

This VI compares a current value to a maximum and minimum value.

 

Description

This could be useful to classify values that fit into a user-specified range. For example, it could be modified to verify which percentage of a collection of data fit into a range.


If the value falls outside of this range, then the last value that fell within this range is passed.

 

Requirements
LabVIEW Base Development System.

 

Steps to Implement or Execute Code
1. Open the attached VI named “Compare Values between Maximum and Minimum LV 2012 - NI Verified.vi”.
2. Run the VI.
3. Change the values of the upper and lower limits and the number to analyze.


Additional Information or References

 Snippet 5047.png

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

National Instruments
Applications Engineer
NI Prototyping Community

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

Comments
elset191
Active Participant
Active Participant
on

In Range and Coerce.vi

--
Tim Elsey
Certified LabVIEW Architect
Tariff Impact Update Learn more