LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I convert four elements of an array of I8 to an I32?

I am new to LabView I am trying to index through an array of bytes and pull out either 2 or 4 bytes and store the values in either words or longs. Is there any easy way to do this?
Thanks
David
0 Kudos
Message 1 of 3
(2,802 Views)
Hi,
there is function Advansed\Data Manipulation\Join numbers.
It get 2 numbers of 8\16 bits and join them to one 16\32 bits number.
In your case you need to take 2 MSB 8-bits numbers and join to 16-bits number. Same thing do for 2 LSB numbers.
After this join to 16-bits numbers to one 32-bits.

I hope that help you.
0 Kudos
Message 2 of 3
(2,802 Views)
Yes, that's my answer ,
thanks,
David
0 Kudos
Message 3 of 3
(2,802 Views)