LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
crossrulz

XOR Array Elements

Status: New

We currently have an AND Array Elements and OR Array Elements.  It would be helpful to also have an XOR Array Elements.  I most often run into needing this when trying to calculate parity.

 

Current Boolean Pallette.PNG



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
2 Comments
crazywalt77
Member

XOR array.png

Using increment of an integer to measure an XOR for an Array.

wiebe@CARYA
Knight of NI

>Using increment of an integer to measure an XOR for an Array.

 

That doesn't XOR the array, it checks if there's exactly one true value. 

 

The XOR is true if there's an odd number of true's. So in your example, you'd have to use Quotient & Remainder the result with 2, and then do the checks...

 

This would work though:

XOR Array.png