<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://labviewwiki.org/w/index.php?action=history&amp;feed=atom&amp;title=Comparison_function</id>
	<title>Comparison function - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://labviewwiki.org/w/index.php?action=history&amp;feed=atom&amp;title=Comparison_function"/>
	<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Comparison_function&amp;action=history"/>
	<updated>2026-04-22T12:55:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://labviewwiki.org/w/index.php?title=Comparison_function&amp;diff=30337&amp;oldid=prev</id>
		<title>Q: Started page</title>
		<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Comparison_function&amp;diff=30337&amp;oldid=prev"/>
		<updated>2020-09-28T20:51:05Z</updated>

		<summary type="html">&lt;p&gt;Started page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{stub}}&lt;br /&gt;
{{LabVIEW Palette Object Information|palette=Functions Palette/Programming/Comparison{{!}}Comparison palette|type=vi|icon=Comparison Palette - Ex Inst Comparison.png}}&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;Comparison&amp;#039;&amp;#039;&amp;#039; Express VI compares input items you specify to determine whether values are equal, greater than, less than, and so on.&lt;br /&gt;
{{TOCright}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
=== Dialog Box Options ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
! Items to Compare&lt;br /&gt;
| Contains the following options: &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Data points&amp;#039;&amp;#039;&amp;#039;—Compares the data points of the signals in &amp;#039;&amp;#039;&amp;#039;Operand 1&amp;#039;&amp;#039;&amp;#039; to the data points of the signals in &amp;#039;&amp;#039;&amp;#039;Operand 2&amp;#039;&amp;#039;&amp;#039;, the value you specify in &amp;#039;&amp;#039;&amp;#039;Value&amp;#039;&amp;#039;&amp;#039;, or the &amp;#039;&amp;#039;&amp;#039;Constant Value to Compare Against&amp;#039;&amp;#039;&amp;#039; input. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Timestamps&amp;#039;&amp;#039;&amp;#039;—Compares the initial time stamps (t0) of the signals in &amp;#039;&amp;#039;&amp;#039;Operand 1&amp;#039;&amp;#039;&amp;#039; to the initial time stamps (t0) of the signals in &amp;#039;&amp;#039;&amp;#039;Operand 2&amp;#039;&amp;#039;&amp;#039;, the value you specify in &amp;#039;&amp;#039;&amp;#039;Value&amp;#039;&amp;#039;&amp;#039;, or the &amp;#039;&amp;#039;&amp;#039;Constant Value to Compare Against&amp;#039;&amp;#039;&amp;#039; input. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Time between points&amp;#039;&amp;#039;&amp;#039;—Compares the time between points (dt) of the signals in &amp;#039;&amp;#039;&amp;#039;Operand 1&amp;#039;&amp;#039;&amp;#039; to the time between points (dt) of the signals in &amp;#039;&amp;#039;&amp;#039;Operand 2&amp;#039;&amp;#039;&amp;#039;, the value you specify in &amp;#039;&amp;#039;&amp;#039;Value&amp;#039;&amp;#039;&amp;#039;, or the &amp;#039;&amp;#039;&amp;#039;Constant Value to Compare Against&amp;#039;&amp;#039;&amp;#039; input. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Number of data points&amp;#039;&amp;#039;&amp;#039;—Compares the number of data points of the signals in &amp;#039;&amp;#039;&amp;#039;Operand 1&amp;#039;&amp;#039;&amp;#039; to the number of data points of the signals in &amp;#039;&amp;#039;&amp;#039;Operand 2&amp;#039;&amp;#039;&amp;#039;, the value you specify in &amp;#039;&amp;#039;&amp;#039;Value&amp;#039;&amp;#039;&amp;#039;, or the &amp;#039;&amp;#039;&amp;#039;Constant Value to Compare Against&amp;#039;&amp;#039;&amp;#039; input. &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Signal name&amp;#039;&amp;#039;&amp;#039;—Compares the signal names of the signals in &amp;#039;&amp;#039;&amp;#039;Operand 1&amp;#039;&amp;#039;&amp;#039; to the signal names of the signals in &amp;#039;&amp;#039;&amp;#039;Operand 2&amp;#039;&amp;#039;&amp;#039;, the value you specify in &amp;#039;&amp;#039;&amp;#039;Value&amp;#039;&amp;#039;&amp;#039;, or the C&amp;#039;&amp;#039;&amp;#039;onstant Value to Compare Against&amp;#039;&amp;#039;&amp;#039; input. When comparing signal names, you can use wildcards to match strings. You can use the question mark character (?) to match any single character. You can use the asterisk character (*) to match any sequence of zero or more characters.&lt;br /&gt;
&lt;br /&gt;
If you select &amp;#039;&amp;#039;&amp;#039;Signal name&amp;#039;&amp;#039;&amp;#039;, the &amp;#039;&amp;#039;&amp;#039;Comparison Condition&amp;#039;&amp;#039;&amp;#039; section is disabled and set to = &amp;#039;&amp;#039;&amp;#039;Equal&amp;#039;&amp;#039;&amp;#039;. &lt;br /&gt;
|-&lt;br /&gt;
! Compare Condition&lt;br /&gt;
| Contains the following options:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;= Equal&amp;#039;&amp;#039;&amp;#039;—Determines if two inputs are equal. Because all comparison operations are floating-point operations, consider using &amp;#039;&amp;#039;&amp;#039;Equal within tolerance&amp;#039;&amp;#039;&amp;#039; for equality comparisons. &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;lt;&amp;gt; Not equal&amp;#039;&amp;#039;&amp;#039;—Determines if two inputs are unequal. &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;gt; Greater&amp;#039;&amp;#039;&amp;#039;—Determines if the first input is greater than the second input. &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;gt;= Greater or equal&amp;#039;&amp;#039;&amp;#039;—Determines if the first input is greater than or equal to the second input. &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;lt; Less&amp;#039;&amp;#039;&amp;#039;—Determines if the first input is less than the second input. &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;lt;= Less than or equal&amp;#039;&amp;#039;&amp;#039;—Determines if the first input is less than or equal to the second input. &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Equal within tolerance&amp;#039;&amp;#039;&amp;#039;—Determines if the inputs are equal within the tolerance you specify in &amp;#039;&amp;#039;&amp;#039;Tolerance&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;Tolerance&amp;#039;&amp;#039;&amp;#039;—Specifies the level of tolerance to use when determining if an input is &amp;#039;&amp;#039;&amp;#039;Equal within tolerance&amp;#039;&amp;#039;&amp;#039;. The default is 0.01.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;In range&amp;#039;&amp;#039;&amp;#039;—Determines if an input falls in the range &amp;#039;&amp;#039;&amp;#039;Minimum&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Maximum&amp;#039;&amp;#039;&amp;#039; specify. &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Out of range&amp;#039;&amp;#039;&amp;#039;—Determines if an input falls out of the range &amp;#039;&amp;#039;&amp;#039;Minimum&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Maximum&amp;#039;&amp;#039;&amp;#039; specify. &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Minimum&amp;#039;&amp;#039;&amp;#039;—Specifies the minimum value of the &amp;#039;&amp;#039;&amp;#039;In range&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Out of range&amp;#039;&amp;#039;&amp;#039; comparisons. The Express VI includes &amp;#039;&amp;#039;&amp;#039;Minimum&amp;#039;&amp;#039;&amp;#039; in the range. The default is 0. &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Maximum&amp;#039;&amp;#039;&amp;#039;—Specifies the maximum value of the &amp;#039;&amp;#039;&amp;#039;In range&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Out of range&amp;#039;&amp;#039;&amp;#039; comparisons. The Express VI includes &amp;#039;&amp;#039;&amp;#039;Maximum&amp;#039;&amp;#039;&amp;#039; in the range. The default is 1.&lt;br /&gt;
|-&lt;br /&gt;
! Comparison Inputs&lt;br /&gt;
| Contains the following options:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Second signal input&amp;#039;&amp;#039;&amp;#039;—Compares the &amp;#039;&amp;#039;&amp;#039;Operand 1&amp;#039;&amp;#039;&amp;#039; input of the Express VI to a second signal input as opposed to a value you specify in &amp;#039;&amp;#039;&amp;#039;Value&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;Constant Value to Compare Against&amp;#039;&amp;#039;&amp;#039; input. Select this option to include the &amp;#039;&amp;#039;&amp;#039;Operand 2&amp;#039;&amp;#039;&amp;#039; input on the Express VI. If &amp;#039;&amp;#039;&amp;#039;Operand 1&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Operand 2&amp;#039;&amp;#039;&amp;#039; are the same size, each item in &amp;#039;&amp;#039;&amp;#039;Operand 1&amp;#039;&amp;#039;&amp;#039; is compared to the corresponding item in &amp;#039;&amp;#039;&amp;#039;Operand 2&amp;#039;&amp;#039;&amp;#039;. If &amp;#039;&amp;#039;&amp;#039;Operand 1&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Operand 2&amp;#039;&amp;#039;&amp;#039; are of different sizes, all the items in &amp;#039;&amp;#039;&amp;#039;Operand 1&amp;#039;&amp;#039;&amp;#039; are compared to the first item in &amp;#039;&amp;#039;&amp;#039;Operand 2&amp;#039;&amp;#039;&amp;#039;. &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Value&amp;#039;&amp;#039;&amp;#039;—Compares the &amp;#039;&amp;#039;&amp;#039;Operand 1&amp;#039;&amp;#039;&amp;#039; input to a constant value you specify. The default is 0. If you wire the &amp;#039;&amp;#039;&amp;#039;Constant Value to Compare Against&amp;#039;&amp;#039;&amp;#039; input, the VI uses the value that this input specifies instead.&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;Point value&amp;#039;&amp;#039;&amp;#039;—Specifies the constant value with which to compare the &amp;#039;&amp;#039;&amp;#039;Operand 1&amp;#039;&amp;#039;&amp;#039; input. The default is 0. &lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;Timestamp value&amp;#039;&amp;#039;&amp;#039;—Specifies the timestamp to apply to the signal. This option is available only if you place a checkmark in the &amp;#039;&amp;#039;&amp;#039;Timestamp&amp;#039;&amp;#039;&amp;#039; checkbox. &lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;Delta time value&amp;#039;&amp;#039;&amp;#039;—Specifies the constant value with which to compare the &amp;#039;&amp;#039;&amp;#039;Operand 1&amp;#039;&amp;#039;&amp;#039; input. The default is 0. &lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;Number of points value&amp;#039;&amp;#039;&amp;#039;—Specifies the number of points to compare. The default is 0. &lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;Signal name value&amp;#039;&amp;#039;&amp;#039;—Specifies the name of the signal.&lt;br /&gt;
|-&lt;br /&gt;
! Result&lt;br /&gt;
| Contains the following options:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;One result per data point&amp;#039;&amp;#039;&amp;#039;—Returns one result per data point. This option is available only when you select &amp;#039;&amp;#039;&amp;#039;Data points&amp;#039;&amp;#039;&amp;#039; from the &amp;#039;&amp;#039;&amp;#039;Items to Compare&amp;#039;&amp;#039;&amp;#039; pull-down menu. &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;One result per channel&amp;#039;&amp;#039;&amp;#039;—Returns one result per channel. When you select &amp;#039;&amp;#039;&amp;#039;Data points&amp;#039;&amp;#039;&amp;#039; from the &amp;#039;&amp;#039;&amp;#039;Items to Compare&amp;#039;&amp;#039;&amp;#039; pull-down menu, &amp;#039;&amp;#039;&amp;#039;One result per channel&amp;#039;&amp;#039;&amp;#039; returns 1 only if all data points in the channel pass the specified comparison. If any point fails, it returns 0. &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;One result for all channels&amp;#039;&amp;#039;&amp;#039;—Returns one result for all the channels. When you select &amp;#039;&amp;#039;&amp;#039;Data points&amp;#039;&amp;#039;&amp;#039; from the &amp;#039;&amp;#039;&amp;#039;Items to Compare&amp;#039;&amp;#039;&amp;#039; pull-down menu, &amp;#039;&amp;#039;&amp;#039;One result for all channels&amp;#039;&amp;#039;&amp;#039; returns 1 only if all data points in the channels pass the specified comparison. If any point fails, it returns 0. &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Invert result&amp;#039;&amp;#039;&amp;#039;—Inverts the outputs.&lt;br /&gt;
|-&lt;br /&gt;
! Result Name&lt;br /&gt;
| Contains the following option:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Change Express VI name to name of function&amp;#039;&amp;#039;&amp;#039;—Changes the name of the Express VI on the block diagram to the name of the function you select in the &amp;#039;&amp;#039;&amp;#039;Comparison Condition&amp;#039;&amp;#039;&amp;#039; section of the configuration dialog box.&lt;br /&gt;
|-&lt;br /&gt;
! Input Signal&lt;br /&gt;
| Displays the input signal. If you wire data to the Express VI and run it, &amp;#039;&amp;#039;&amp;#039;Input Signal&amp;#039;&amp;#039;&amp;#039; displays real data. If you close and reopen the Express VI, &amp;#039;&amp;#039;&amp;#039;Input Signal&amp;#039;&amp;#039;&amp;#039; displays sample data until you run the Express VI again.&lt;br /&gt;
|-&lt;br /&gt;
! Result Preview&lt;br /&gt;
| Displays a preview of the measurement. The &amp;#039;&amp;#039;&amp;#039;Result Preview&amp;#039;&amp;#039;&amp;#039; plot indicates the value of the selected measurement with a dotted line. If you wire data to the Express VI and run the VI, &amp;#039;&amp;#039;&amp;#039;Result Preview&amp;#039;&amp;#039;&amp;#039; displays real data. If you close and reopen the Express VI, &amp;#039;&amp;#039;&amp;#039;Result Preview&amp;#039;&amp;#039;&amp;#039; displays sample data until you run the VI again. If the cutoff frequency values are invalid, &amp;#039;&amp;#039;&amp;#039;Result Preview&amp;#039;&amp;#039;&amp;#039; does not display valid data.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Block Diagram Inputs ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
! Operand 1&lt;br /&gt;
| Specifies the first input for comparison.&lt;br /&gt;
|-&lt;br /&gt;
! Operand 2&lt;br /&gt;
| Specifies the second signal input for comparison. This input is available only when you select &amp;#039;&amp;#039;&amp;#039;Second signal input&amp;#039;&amp;#039;&amp;#039; in the configuration dialog box.&lt;br /&gt;
|-&lt;br /&gt;
! Constant Value to Compare Against&lt;br /&gt;
| Specifies the constant value with which to compare the &amp;#039;&amp;#039;&amp;#039;Operand 1&amp;#039;&amp;#039;&amp;#039; input. If &amp;#039;&amp;#039;&amp;#039;Constant Value to Compare Against&amp;#039;&amp;#039;&amp;#039; is not wired, the VI uses the &amp;#039;&amp;#039;&amp;#039;Value&amp;#039;&amp;#039;&amp;#039; specified in the configuration dialog box.&lt;br /&gt;
|-&lt;br /&gt;
! error in&lt;br /&gt;
| Describes error conditions that occur before this node runs.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Block Diagram Outputs ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
! Result&lt;br /&gt;
| Returns the resulting data based on the configuration of the Express VI.&lt;br /&gt;
|-&lt;br /&gt;
! error in&lt;br /&gt;
| Contains error information. This output provides standard error out functionality.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
{{ambox|text=History information is needed.  What changes have occurred over previous versions?}}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Version&lt;br /&gt;
! Change(s)&lt;br /&gt;
|-&lt;br /&gt;
|[[File:LV2018.png|frameless|border|64x64px|LabVIEW 2018|link=LabVIEW 2018]]&lt;br /&gt;
|More info to come.&lt;br /&gt;
|}&lt;br /&gt;
== See Also ==&lt;br /&gt;
{{ambox|text=Add links to internal resources that would also help.}}&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
{{ambox|text=Add links to external resources that would also help.}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Comparison Palette]]&lt;/div&gt;</summary>
		<author><name>Q</name></author>
	</entry>
</feed>