LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you convert 32 unsigned 8-bit integers (which are either zero or one) into one unsigned 32-bit word?

I have an array of U8's which is 32 rows by 500K collumns. The 32 rows represent a 32 bit word which I want to form. When I am done I want a 1D array of U32s which is of size 500K.
Scott Rogers
Sr. DSM
Western NY
0 Kudos
Message 1 of 3
(2,383 Views)
Use for loops to take the array apart and get the value of each bit and add them together using a shift register. See the attached example...

Hope it helps.

Brian
Message 2 of 3
(2,383 Views)
Great answer. Thanks. Although, I am a 10 year LV veteran, I am lacking on the binary manipulation skills.
Scott Rogers
Sr. DSM
Western NY
0 Kudos
Message 3 of 3
(2,383 Views)