LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to compare two arrays and output one boolean

Solved!
Go to solution

This should be simple.  I want to compare two arrays (5 elements each) and return a single boolean (T/F), not a boolean array.

 

Thanks,

 

Kevin

 

0 Kudos
Message 1 of 3
(3,281 Views)
Solution
Accepted by topic author atomless
Right click the comparison, Comparison mode, select Compare Aggregates.
Message 2 of 3
(3,279 Views)

(You still seem to have the problem that you are confusing controls and indicators, making it necessary to use locals. Using an indicator as a control is not a good idea, because it cannot be operated when the VI is in run mode. You can easily switch the behavior of any control/indicator by "right-clicking... change to control/indicator").

 

Ravens suggestion is good, but there are other possible answers because you did not tell us what the single boolean should show, e.g.:

 

  • Are all elements equal?
  • Is at least one element equal?
  • Are the arrays of equal lenght?
  • etc.

 

 

Message 3 of 3
(3,272 Views)