ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

xor of array element

Dear I want calculate the parity bit (P0, P1)of an array of 6 element with xor function

P

0 = ID0 +ID1+ID2+ID4 (even) and P1= ID1+ID3+ID4+ID5 (odd) parity.

anybody know a simple code for that?

0 Kudos
Message 1 of 3
(3,237 Views)
Hi Benio,

maybe you need this:

I used XOR as written in your question (in your formulas you used '+'-signs).

Message Edited by GerdW on 07-03-2006 05:01 PM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(3,230 Views)

thank you GerdW,

this way as you described is much easier.

thanks a lot

 

0 Kudos
Message 3 of 3
(3,207 Views)