LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Byte array to string with spaces in between

Solved!
Go to solution

I have a byte array of binary numbers that I want to combine and get their decimal representation.  For example the U8 subarray 3 0 1 1 would like to convert it to decimal 3.  

 

RFeng_3-1590097456327.png

RFeng_4-1590098871689.png

 

 

 

 

0 Kudos
Message 1 of 2
(1,815 Views)
Solution
Accepted by topic author RFeng

Use a >0 function to convert the array of 0's and 1's to an array of booleans.

 

Use Boolean Array to number to get the number.

 

You may need to do some array manipulation (reverse order, make sure it is 8 elements), to make sure the array converts properly.

 

I don't know why you say "Byte array to string with spaces in between" in your subject, because the problem you put in the message doesn't have a string and doesn't have spaces.

0 Kudos
Message 2 of 2
(1,808 Views)