LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to do "bitwise and" in labview

Hi , 

 

I am trying to do "bitwise and" in labview . I thought (BOOLEAN AND) in the boolean could do it ,but it just seems to multiply whatever inputs I am giving.

 

I am trying to do (1010 (bitwise and) 1000 ) with the "boolean and"and this gives me 1111100 instead of 1000 , am I interprating the function incorrectly or is it really doing it and what is its exact function?

 

Please tell me how can I do bitwise and between my inputs.

 

 

Thanks 

 

 

 

 

0 Kudos
Message 1 of 4
(5,123 Views)

It works perfectly for me. You need to show your code.

0 Kudos
Message 2 of 4
(5,120 Views)

I assume you controls and indicators are set to binary display and all are of the same integer datatype. Are they?

 

Please show us your code....

0 Kudos
Message 3 of 4
(5,111 Views)

I had not changed the format for one of the inputs, it was not binary , I double checked it when you mentione . It works perfect now .

 

Thanks .

0 Kudos
Message 4 of 4
(5,096 Views)