To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This VI compares inputs X and Y and returns X<Y, X=Y, or X>Y as a string output.
Description
A simple and useful VI that can either be used or easily added into a larger program with the drag-and-drop Snippet below. Two-users' defined inputs are subtracted, and the sign of the result (-1, 0, +1) is found by using the Sign.vi. By adding 1, a line-index is now created to be used with the Pick Line.vi, which outputs our logic comparison as a string.
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.