Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Comparing Clusters

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Clusters you compare must include the same number of elements, each element in the clusters must be of compatible types, and the elements must be in the same cluster order. For example, you can compare a cluster of a DBL and a string to a cluster of an I32 and a string.

In Compare Elements mode, Comparison functions return a cluster of Boolean elements, one for each corresponding element in the input clusters.

In Compare Aggregates mode, comparison functions return a single Boolean result after comparing the elements in a cluster. Comparison functions compare elements sequentially until a decision can be made, much like the alphabetical ordering of English words, where letters of each word are compared until they are not equal. Therefore, the function performs the following steps to determine the result of the comparison:

  • The function compares corresponding elements in each input cluster, starting at the beginning of the cluster.
  • If the corresponding elements are not equal, the function stops—it returns the result of this comparison.
  • If the corresponding elements are equal, the comparison function processes the next pair of values, until it finds an inequality or reaches the end of the input clusters.

 

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