04-27-2016 09:26 PM
Hi,
Could you please help me to implemnet this logic in LabVIEW.
Let's say my number is 101011010 and I have to XOR it based on MSB with 1001
In each step I move right 1 bit and if MSB =1 I have to XOR it with 10001 and if MSB=0 I should do nothing
Thanks
1 0 1 0 1 1 0 1 0 ( if MSB=1 do XOR )
XOR
1 0 0 0 1
----------------------
0 | 0 1 0 0 1 1 bit right shift then MSB=0 so do nothing
1 0 0 0 1
------------------------------
0 | 1 0 0 1 0 1 bit right shift , MSB =1 so XOR
1 0 0 0 1
------------------------------------------
0 | 0 0 1 1 1 ( MSB =0 so do nothing )
1 0 0 0 1
-------------------------------------------------
0 0 1 1 1 0
04-27-2016 10:33 PM
Why don't you try it yourself and if you run into problems, show us what you have so we can help you out? We shouldn't be the first resource you use. YOU should be the first resource.
04-28-2016 06:10 AM
How are you storing your number? U16? Boolean Array?