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: 

Hexadecimal ANDing

Hi,
 
I am stuck at this little piece of LV code.
 
I am trying to do the following.
 
I have two data, 80h and 0Fh  i want to AND them . Get the result as 0Fh and now increment this result 0F h to 1F, 2F, 3F... , which is just adding 10h to 0F h repetitively to it. However, i might be making something wrong as I try  to AND it coz i get the result as 0. Can anybody let me know how do we do a bit by bit ANDing. or any help to realize this.
 
Thanks
0 Kudos
Message 1 of 5
(3,732 Views)


Dravi99 wrote:
I have two data, 80h and 0Fh  i want to AND them
x80 and x0f have no bits in common, so a bitwise AND will give you zero. What else do you expect?
0 Kudos
Message 2 of 5
(3,730 Views)

If you AND 80h and 0Fh, the result is 00h.

0 Kudos
Message 3 of 5
(3,719 Views)

Hey altenbach,

Sorry for my stupidity Smiley Surprised, just got carried away in the code  i configured that. I also configured the rest of the problem , I guess. if not i will post my query here.

Thanks for the help. Good to know that you are around !

 

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

Thanks Dennis.

I realized what I was trying to do. Just got confused between different bits and posted something stupid.

0 Kudos
Message 5 of 5
(3,712 Views)