Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Comparison Functions

LabVIEW 2011 FPGA Module Help

Edition Date: June 2011

Part Number: 371599G-01

»View Product Info

Owning Palette: FPGA Module VIs and Functions

Requires: FPGA Module. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the Comparison functions to compare Boolean values, numeric values, arrays, and clusters.

Note  This palette is specific to FPGA targets and contains a subset of the VIs and functions that are on this palette when you edit a host VI.

The Comparison functions treat Boolean, numeric, array, and cluster values differently. You can change the comparison mode of some Comparison functions.

Refer to the Comparison Palette Details topic for information about Timed Loop compatibility, usage, timing, and resource considerations related to the objects on this palette.

Palette ObjectDescription
Equal To 0?Returns TRUE if x is equal to 0. Otherwise, this function returns FALSE.
Equal?Returns TRUE if x is equal to y. Otherwise, this function returns FALSE. You can change the comparison mode of this function.
Fixed-Point Overflow?Returns TRUE if FXP includes an overflow status and FXP is the result of an operation that overflowed. Otherwise, this function returns FALSE.
Greater Or Equal To 0?Returns TRUE if x is greater than or equal to 0. Otherwise, this function returns FALSE.
Greater Or Equal?Returns TRUE if x is greater than or equal to y. Otherwise, this function returns FALSE. You can change the comparison mode of this function.
Greater Than 0?Returns TRUE if x is greater than 0. Otherwise, this function returns FALSE.
Greater?Returns TRUE if x is greater than y. Otherwise, this function returns FALSE. You can change the comparison mode of this function.
In Range and CoerceDetermines whether x falls within a range specified by the upper limit and lower limit inputs and optionally coerces the value to fall within the range. The function performs the coercion only in Compare Elements mode. This function accepts time stamp values if all inputs are time stamp values. You can change the comparison mode of this function.
Less Or Equal To 0?Returns TRUE if x is less than or equal to 0. Otherwise, this function returns FALSE.
Less Or Equal?Returns TRUE if x is less than or equal to y. Otherwise, this function returns FALSE. You can change the comparison mode of this function.
Less Than 0?Returns TRUE if x is less than 0. Otherwise, this function returns FALSE.
Less?Returns TRUE if x is less than y. Otherwise, this function returns FALSE. You can change the comparison mode of this function.
Max & MinCompares x and y and returns the larger value at the top output terminal and the smaller value at the bottom output terminal. This function accepts time stamp values if all inputs are time stamp values. If the inputs are time stamp values, the function returns the later time at the top and the earlier time at the bottom. The wire is broken if the inputs are not the same data type. You can change the comparison mode of this function.
Not Equal To 0?Returns TRUE if x is not equal to 0. Otherwise, this function returns FALSE.
Not Equal?Returns TRUE if x is not equal to y. Otherwise, this function returns FALSE. You can change the comparison mode of this function.
SelectReturns the value wired to the t input or f input, depending on the value of s. If s is TRUE, this function returns the value wired to t. If s is FALSE, this function returns the value wired to f.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit