How can I do this in labview: find the numbers of the overlap between bits

Dear

I have this problem it really so complex to solve for me

This isn't the House work its related to my academic research

I have two streams of bits, each of them with a length fixed k bits as follows:

x = 1, 1, 1, 1, 0, 0, 0, 0

y = 1, 1, 1, 0, 0, 0, 0, 0

I need to extract the following information

A1, the number of 1 overlapping: in this case is 3
A2, the number of 0 and 1 which overlap x of Y: in this case is 1

A3, the number of 0 overlapping of X and 1 of Y: in this case is 0

A4, the number 0 that overlap on the two x, y: in this case is 4

I thank in advance

Best regards

Sorry, I was posting by phone earlier. Here's what you can do.

(If the berries are important, you must convert to I32 before summation)

Tags: NI Software

Similar Questions

Maybe you are looking for