LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Implement digital logics in LabVIEW

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

0 Kudos
Message 1 of 3
(2,838 Views)

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.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 3
(2,813 Views)

How are you storing your number?  U16?  Boolean Array?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 3
(2,774 Views)